summaryrefslogtreecommitdiff
path: root/apps
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 /apps
parent0f1a0405e00ff39ac1fff3ed5dbe1a17f1130c34 (diff)
downloadrockbox-8d8576a54ff53b2ef1ea2eb31cde726fba324024.zip
rockbox-8d8576a54ff53b2ef1ea2eb31cde726fba324024.tar.gz
rockbox-8d8576a54ff53b2ef1ea2eb31cde726fba324024.tar.bz2
rockbox-8d8576a54ff53b2ef1ea2eb31cde726fba324024.tar.xz
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
Diffstat (limited to 'apps')
-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 63ec7ec..cebdc46 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)
#if LCD_DEPTH > 1
rb->lcd_set_backdrop(NULL);
- rb->lcd_set_background(LCD_RGBPACK(182, 198, 229)); /* rockbox blue */
#if LCD_DEPTH >= 16
rb->lcd_set_foreground( LCD_RGBPACK( 0, 0, 0));
+ rb->lcd_set_background(LCD_RGBPACK(182, 198, 229)); /* rockbox blue */
#elif LCD_DEPTH == 2
rb->lcd_set_foreground(0);
+ rb->lcd_set_background(LCD_DEFAULT_BG);
#endif
#endif
maze_init(&maze);
diff --git a/apps/plugins/rocklife.c b/apps/plugins/rocklife.c
index 0442637..49e1e8f 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)
backlight_force_on(rb); /* backlight control in lib/helper.c */
#if LCD_DEPTH > 1
rb->lcd_set_backdrop(NULL);
+#ifdef HAVE_LCD_COLOR
rb->lcd_set_background(LCD_RGBPACK(182, 198, 229)); /* rockbox blue */
-#endif
+#else
+ rb->lcd_set_background(LCD_DEFAULT_BG);
+#endif /* HAVE_LCD_COLOR */
+#endif /* LCD_DEPTH > 1 */
/* link pointers to grids */
pgrid = (char *)grid_a;