diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-07-19 10:33:41 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-07-19 10:33:41 +0000 |
commit | b0e056b5aeaac668312cbf67ee9c9d1713704b05 (patch) | |
tree | e0db08c1723c11b82191366ca3930046f5f1f34b /apps/plugins/bounce.c | |
parent | 82ea7c3bacd0b5308e7f0b1d8f35a4e3e13e54f7 (diff) | |
download | rockbox-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 'apps/plugins/bounce.c')
-rw-r--r-- | apps/plugins/bounce.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c index c3bea8e14f..3ff3a8d5f6 100644 --- a/apps/plugins/bounce.c +++ b/apps/plugins/bounce.c | |||
@@ -282,11 +282,18 @@ 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 | static const int face_colors[] = | 285 | #ifdef HAVE_LCD_COLOR |
286 | static const struct rgb face_colors[] = | ||
287 | { | ||
288 | LCD_BLACK, {0, 0, LCD_MAX_BLUE}, {LCD_MAX_RED, 0, 0} | ||
289 | }; | ||
290 | #else | ||
291 | static const int face_colors[] = | ||
286 | { | 292 | { |
287 | 0, 2*LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3 | 293 | 0, 2*LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3 |
288 | }; | 294 | }; |
289 | #endif | 295 | #endif |
296 | #endif | ||
290 | 297 | ||
291 | static int scrollit(void) | 298 | static int scrollit(void) |
292 | { | 299 | { |
@@ -474,7 +481,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
474 | if (h > 0) | 481 | if (h > 0) |
475 | h = scrollit(); | 482 | h = scrollit(); |
476 | #if LCD_DEPTH > 1 | 483 | #if LCD_DEPTH > 1 |
477 | rb->lcd_set_foreground(0); | 484 | rb->lcd_set_foreground(LCD_BLACK); |
478 | #endif | 485 | #endif |
479 | } while(h > 0); | 486 | } while(h > 0); |
480 | 487 | ||