diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-11-16 21:09:23 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-11-16 21:09:23 +0000 |
commit | 5b2cba17aa95ececfdb6a498540de4dfa215e920 (patch) | |
tree | 3574eab7dc84f588268b72f6db56744fcc4d0e64 /apps/plugins/bounce.c | |
parent | 15046f99b3840c07bdd9d52e7014c6e775267c55 (diff) | |
download | rockbox-5b2cba17aa95ececfdb6a498540de4dfa215e920.tar.gz rockbox-5b2cba17aa95ececfdb6a498540de4dfa215e920.zip |
Changed the LCD_COLOR pixel value format to packed RGB (unsigned int). Now all LCDs with depth > 1 use the same datatype. Added macros for easy pixel value definition.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7912 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/bounce.c')
-rw-r--r-- | apps/plugins/bounce.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c index 3ff3a8d5f6..1bf8b3b34d 100644 --- a/apps/plugins/bounce.c +++ b/apps/plugins/bounce.c | |||
@@ -282,17 +282,14 @@ static void addclock(void) | |||
282 | #define DRAW_WIDTH (LCD_WIDTH + LETTER_WIDTH*2) | 282 | #define DRAW_WIDTH (LCD_WIDTH + LETTER_WIDTH*2) |
283 | 283 | ||
284 | #if LCD_DEPTH > 1 | 284 | #if LCD_DEPTH > 1 |
285 | #ifdef HAVE_LCD_COLOR | 285 | static const unsigned face_colors[] = |
286 | static const struct rgb face_colors[] = | ||
287 | { | 286 | { |
288 | LCD_BLACK, {0, 0, LCD_MAX_BLUE}, {LCD_MAX_RED, 0, 0} | 287 | #ifdef HAVE_LCD_COLOR |
289 | }; | 288 | LCD_BLACK, LCD_RGBPACK(0, 0, 255), LCD_RGBPACK(255, 0, 0) |
290 | #else | 289 | #else |
291 | static const int face_colors[] = | 290 | LCD_BLACK, LCD_LIGHTGRAY, LCD_DARKGRAY |
292 | { | ||
293 | 0, 2*LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3 | ||
294 | }; | ||
295 | #endif | 291 | #endif |
292 | }; | ||
296 | #endif | 293 | #endif |
297 | 294 | ||
298 | static int scrollit(void) | 295 | static int scrollit(void) |