summaryrefslogtreecommitdiff
path: root/firmware/export/lcd.h
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/export/lcd.h
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/export/lcd.h')
-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 {
135 unsigned char green; 135 unsigned char green;
136 unsigned char blue; 136 unsigned char blue;
137}; 137};
138#define LCD_BLACK ((struct rgb){0, 0, 0})
139#define LCD_WHITE ((struct rgb){LCD_MAX_RED, LCD_MAX_GREEN, LCD_MAX_BLUE})
138#else /* monochrome */ 140#else /* monochrome */
139#define LCD_MAX_LEVEL ((1 << LCD_DEPTH) - 1) 141#define LCD_MAX_LEVEL ((1 << LCD_DEPTH) - 1)
140 142#define LCD_BLACK 0
143#define LCD_WHITE LCD_MAX_LEVEL
141#endif 144#endif
142 145
143/* Memory copy of display bitmap */ 146/* Memory copy of display bitmap */