1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-23 20:33:45 +02:00

ubb-la/gui.c: add section comments for color and layout definitions

This commit is contained in:
Werner Almesberger 2013-01-31 02:59:37 -03:00
parent 159a128d28
commit ba033cc27e

View File

@ -32,6 +32,10 @@
#define XRES 320 /* canvas width */
#define YRES 240 /* canvas height */
/* ----- Colors ------------------------------------------------------------ */
#define TEXT_RGBA 0xffffffff /* general text */
#define UNIT_RGBA 0xb0e0ffff /* units */
#define MAP_BUF_RGBA 0x808080ff /* buffer in the map */
@ -41,6 +45,10 @@
#define LABEL_RGBA 0xffffffff /* channel label */
#define DIV_RGBA 0x808080ff /* divisions */
/* ----- Layout ------------------------------------------------------------ */
#define XCENTER ((XRES+CH_XOFF)/2)
#define XWIDTH (XRES-CH_XOFF)
@ -68,6 +76,10 @@
#define DIV_INT_X 80
#define DIV_INT_Y INTERVAL_Y
/* ----- Miscellaneous definitions ----------------------------------------- */
#define REPEAT_DELAY_MS 300
#define REPEAT_INTERVAL_MS 30