mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 23:00:38 +02:00
ubb-la/gui.c: add section comments for color and layout definitions
This commit is contained in:
parent
159a128d28
commit
ba033cc27e
12
ubb-la/gui.c
12
ubb-la/gui.c
@ -32,6 +32,10 @@
|
|||||||
#define XRES 320 /* canvas width */
|
#define XRES 320 /* canvas width */
|
||||||
#define YRES 240 /* canvas height */
|
#define YRES 240 /* canvas height */
|
||||||
|
|
||||||
|
|
||||||
|
/* ----- Colors ------------------------------------------------------------ */
|
||||||
|
|
||||||
|
|
||||||
#define TEXT_RGBA 0xffffffff /* general text */
|
#define TEXT_RGBA 0xffffffff /* general text */
|
||||||
#define UNIT_RGBA 0xb0e0ffff /* units */
|
#define UNIT_RGBA 0xb0e0ffff /* units */
|
||||||
#define MAP_BUF_RGBA 0x808080ff /* buffer in the map */
|
#define MAP_BUF_RGBA 0x808080ff /* buffer in the map */
|
||||||
@ -41,6 +45,10 @@
|
|||||||
#define LABEL_RGBA 0xffffffff /* channel label */
|
#define LABEL_RGBA 0xffffffff /* channel label */
|
||||||
#define DIV_RGBA 0x808080ff /* divisions */
|
#define DIV_RGBA 0x808080ff /* divisions */
|
||||||
|
|
||||||
|
|
||||||
|
/* ----- Layout ------------------------------------------------------------ */
|
||||||
|
|
||||||
|
|
||||||
#define XCENTER ((XRES+CH_XOFF)/2)
|
#define XCENTER ((XRES+CH_XOFF)/2)
|
||||||
#define XWIDTH (XRES-CH_XOFF)
|
#define XWIDTH (XRES-CH_XOFF)
|
||||||
|
|
||||||
@ -68,6 +76,10 @@
|
|||||||
#define DIV_INT_X 80
|
#define DIV_INT_X 80
|
||||||
#define DIV_INT_Y INTERVAL_Y
|
#define DIV_INT_Y INTERVAL_Y
|
||||||
|
|
||||||
|
|
||||||
|
/* ----- Miscellaneous definitions ----------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
#define REPEAT_DELAY_MS 300
|
#define REPEAT_DELAY_MS 300
|
||||||
#define REPEAT_INTERVAL_MS 30
|
#define REPEAT_INTERVAL_MS 30
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user