From ba033cc27e7a0799e9b2dec7f69d1ecc76e778ad Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 31 Jan 2013 02:59:37 -0300 Subject: [PATCH] ubb-la/gui.c: add section comments for color and layout definitions --- ubb-la/gui.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ubb-la/gui.c b/ubb-la/gui.c index cf695cd..bb69a95 100644 --- a/ubb-la/gui.c +++ b/ubb-la/gui.c @@ -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