summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarianne Arnold <pixelma@rockbox.org>2008-05-05 17:14:45 +0000
committerMarianne Arnold <pixelma@rockbox.org>2008-05-05 17:14:45 +0000
commit8d8576a54ff53b2ef1ea2eb31cde726fba324024 (patch)
treee240df19f14d46c23177f41d42767e054bcf7604
parent0f1a0405e00ff39ac1fff3ed5dbe1a17f1130c34 (diff)
downloadrockbox-8d8576a54ff53b2ef1ea2eb31cde726fba324024.tar.gz
rockbox-8d8576a54ff53b2ef1ea2eb31cde726fba324024.zip
Fix maze and rocklife on greyscale targets which were broken by r17382. Maybe the colours or the code can be improved a bit, just get it working again for now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17390 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/maze.c3
-rw-r--r--apps/plugins/rocklife.c6
2 files changed, 7 insertions, 2 deletions
diff --git a/apps/plugins/maze.c b/apps/plugins/maze.c
index 63ec7ec891..cebdc46cff 100644
--- a/apps/plugins/maze.c
+++ b/apps/plugins/maze.c
@@ -484,11 +484,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
484 484
485#if LCD_DEPTH > 1 485#if LCD_DEPTH > 1
486 rb->lcd_set_backdrop(NULL); 486 rb->lcd_set_backdrop(NULL);
487 rb->lcd_set_background(LCD_RGBPACK(182, 198, 229)); /* rockbox blue */
488#if LCD_DEPTH >= 16 487#if LCD_DEPTH >= 16
489 rb->lcd_set_foreground( LCD_RGBPACK( 0, 0, 0)); 488 rb->lcd_set_foreground( LCD_RGBPACK( 0, 0, 0));
489 rb->lcd_set_background(LCD_RGBPACK(182, 198, 229)); /* rockbox blue */
490#elif LCD_DEPTH == 2 490#elif LCD_DEPTH == 2
491 rb->lcd_set_foreground(0); 491 rb->lcd_set_foreground(0);
492 rb->lcd_set_background(LCD_DEFAULT_BG);
492#endif 493#endif
493#endif 494#endif
494 maze_init(&maze); 495 maze_init(&maze);
diff --git a/apps/plugins/rocklife.c b/apps/plugins/rocklife.c
index 0442637228..49e1e8fc33 100644
--- a/apps/plugins/rocklife.c
+++ b/apps/plugins/rocklife.c
@@ -409,8 +409,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
409 backlight_force_on(rb); /* backlight control in lib/helper.c */ 409 backlight_force_on(rb); /* backlight control in lib/helper.c */
410#if LCD_DEPTH > 1 410#if LCD_DEPTH > 1
411 rb->lcd_set_backdrop(NULL); 411 rb->lcd_set_backdrop(NULL);
412#ifdef HAVE_LCD_COLOR
412 rb->lcd_set_background(LCD_RGBPACK(182, 198, 229)); /* rockbox blue */ 413 rb->lcd_set_background(LCD_RGBPACK(182, 198, 229)); /* rockbox blue */
413#endif 414#else
415 rb->lcd_set_background(LCD_DEFAULT_BG);
416#endif /* HAVE_LCD_COLOR */
417#endif /* LCD_DEPTH > 1 */
414 418
415 /* link pointers to grids */ 419 /* link pointers to grids */
416 pgrid = (char *)grid_a; 420 pgrid = (char *)grid_a;