From 7efedf736b630ca5e408beaeeea09e638dba4075 Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Sat, 10 Jun 2006 23:17:56 +0000 Subject: Fix b&w LCD targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10109 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/sokoban.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'apps') diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c index 248a3654f1..93f7b7edbb 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 ); -- cgit v1.2.3