summaryrefslogtreecommitdiff
path: root/apps/plugins/sokoban.c
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2006-06-10 23:17:56 +0000
committerAntoine Cellerier <dionoea@videolan.org>2006-06-10 23:17:56 +0000
commit7efedf736b630ca5e408beaeeea09e638dba4075 (patch)
treecf0d045aad3cd3f6b083ebedcd97a3f0ec4ad010 /apps/plugins/sokoban.c
parent1d7f8067a6a52946f331ab040fd43917e58c36f6 (diff)
downloadrockbox-7efedf736b630ca5e408beaeeea09e638dba4075.zip
rockbox-7efedf736b630ca5e408beaeeea09e638dba4075.tar.gz
rockbox-7efedf736b630ca5e408beaeeea09e638dba4075.tar.bz2
rockbox-7efedf736b630ca5e408beaeeea09e638dba4075.tar.xz
Fix b&w LCD targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10109 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/sokoban.c')
-rw-r--r--apps/plugins/sokoban.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c
index 248a365..93f7b7e 100644
--- a/apps/plugins/sokoban.c
+++ b/apps/plugins/sokoban.c
@@ -105,7 +105,7 @@ extern const fb_data sokoban_tiles[];
#ifdef HAVE_LCD_COLOR
#define BG_COLOR LCD_RGBPACK(181,199,231) /* Background color. Default Rockbox light blue. */
-#elif LCD_DEPTH > 1
+#elif LCD_DEPTH >= 2
#define MEDIUM_GRAY LCD_BRIGHTNESS(127)
#endif
@@ -443,7 +443,7 @@ static void update_screen(void)
break;
case '#': /* this is a wall */
-#if LCD_DEPTH >= 1
+#if LCD_DEPTH >= 2
rb->lcd_bitmap_part( sokoban_tiles, 0, 1*magnify, magnify,
c, b, magnify, magnify );
#else
@@ -458,7 +458,7 @@ static void update_screen(void)
break;
case '.': /* this is a home location */
-#if LCD_DEPTH >= 1
+#if LCD_DEPTH >= 2
rb->lcd_bitmap_part( sokoban_tiles, 0, 4*magnify, magnify,
c, b, magnify, magnify );
#else
@@ -468,7 +468,7 @@ static void update_screen(void)
break;
case '$': /* this is a box */
-#if LCD_DEPTH >= 1
+#if LCD_DEPTH >= 2
rb->lcd_bitmap_part( sokoban_tiles, 0, 2*magnify, magnify,
c, b, magnify, magnify );
#else
@@ -478,7 +478,7 @@ static void update_screen(void)
case '@': /* this is you */
{
-#if LCD_DEPTH >= 1
+#if LCD_DEPTH >= 2
rb->lcd_bitmap_part( sokoban_tiles, 0, 5*magnify, magnify,
c, b, magnify, magnify );
#else
@@ -499,7 +499,7 @@ static void update_screen(void)
case '%': /* this is a box on a home spot */
-#if LCD_DEPTH >= 1
+#if LCD_DEPTH >= 2
rb->lcd_bitmap_part( sokoban_tiles, 0, 3*magnify, magnify,
c, b, magnify, magnify );
#else
@@ -509,7 +509,7 @@ static void update_screen(void)
#endif
break;
-#if LCD_DEPTH >= 1
+#if LCD_DEPTH >= 2
default:
rb->lcd_bitmap_part( sokoban_tiles, 0, 0*magnify, magnify,
c, b, magnify, magnify );