summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-07-19 10:33:41 +0000
committerJens Arnold <amiconn@rockbox.org>2005-07-19 10:33:41 +0000
commitb0e056b5aeaac668312cbf67ee9c9d1713704b05 (patch)
treee0db08c1723c11b82191366ca3930046f5f1f34b /firmware
parent82ea7c3bacd0b5308e7f0b1d8f35a4e3e13e54f7 (diff)
downloadrockbox-b0e056b5aeaac668312cbf67ee9c9d1713704b05.tar.gz
rockbox-b0e056b5aeaac668312cbf67ee9c9d1713704b05.zip
More preparations and conversions for colour LCD support.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7195 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/lcd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 30677e492e..cfc73b4a09 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -135,9 +135,12 @@ struct rgb {
unsigned char green;
unsigned char blue;
};
+#define LCD_BLACK ((struct rgb){0, 0, 0})
+#define LCD_WHITE ((struct rgb){LCD_MAX_RED, LCD_MAX_GREEN, LCD_MAX_BLUE})
#else /* monochrome */
#define LCD_MAX_LEVEL ((1 << LCD_DEPTH) - 1)
-
+#define LCD_BLACK 0
+#define LCD_WHITE LCD_MAX_LEVEL
#endif
/* Memory copy of display bitmap */