1
0
Fork 0
forked from len0rd/rockbox

Grayscale graphics for sokoban. (h1x0, ipod mini and ipod 4g)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10108 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Antoine Cellerier 2006-06-10 23:08:29 +00:00
parent 2c450976fd
commit 1d7f8067a6
3 changed files with 10 additions and 12 deletions

View file

@ -116,6 +116,8 @@ sokoban_tiles.9x9.bmp
/* LCD_HEIGHT >= 128 */ /* LCD_HEIGHT >= 128 */
sokoban_tiles.6x6.bmp sokoban_tiles.6x6.bmp
#endif #endif
#elif LCD_DEPTH >= 2
sokoban_tiles.6x6x2.bmp
#endif #endif
/* Flip it */ /* Flip it */

Binary file not shown.

After

Width:  |  Height:  |  Size: 774 B

View file

@ -24,7 +24,7 @@
PLUGIN_HEADER PLUGIN_HEADER
#ifdef HAVE_LCD_COLOR #if LCD_DEPTH >= 2
extern const fb_data sokoban_tiles[]; extern const fb_data sokoban_tiles[];
#endif #endif
@ -426,7 +426,7 @@ static void update_screen(void)
int magnify = 14; int magnify = 14;
#elif LCD_HEIGHT >= 176 /* h3x0, ipod color/photo */ #elif LCD_HEIGHT >= 176 /* h3x0, ipod color/photo */
int magnify = 9; int magnify = 9;
#elif LCD_HEIGHT >= 128 /* h1x0, ipod nano */ #elif LCD_HEIGHT >= 110 /* h1x0, ipod nano, ipod mini */
int magnify = 6; int magnify = 6;
#else /* other */ #else /* other */
int magnify = 4; int magnify = 4;
@ -443,13 +443,9 @@ static void update_screen(void)
break; break;
case '#': /* this is a wall */ case '#': /* this is a wall */
#if HAVE_LCD_COLOR #if LCD_DEPTH >= 1
rb->lcd_bitmap_part( sokoban_tiles, 0, 1*magnify, magnify, rb->lcd_bitmap_part( sokoban_tiles, 0, 1*magnify, magnify,
c, b, magnify, magnify ); c, b, magnify, magnify );
#elif LCD_DEPTH > 1
rb->lcd_set_foreground(MEDIUM_GRAY);
rb->lcd_fillrect(c, b, magnify, magnify);
rb->lcd_set_foreground(LCD_BLACK);
#else #else
{ {
int i, j; int i, j;
@ -462,7 +458,7 @@ static void update_screen(void)
break; break;
case '.': /* this is a home location */ case '.': /* this is a home location */
#ifdef HAVE_LCD_COLOR #if LCD_DEPTH >= 1
rb->lcd_bitmap_part( sokoban_tiles, 0, 4*magnify, magnify, rb->lcd_bitmap_part( sokoban_tiles, 0, 4*magnify, magnify,
c, b, magnify, magnify ); c, b, magnify, magnify );
#else #else
@ -472,7 +468,7 @@ static void update_screen(void)
break; break;
case '$': /* this is a box */ case '$': /* this is a box */
#ifdef HAVE_LCD_COLOR #if LCD_DEPTH >= 1
rb->lcd_bitmap_part( sokoban_tiles, 0, 2*magnify, magnify, rb->lcd_bitmap_part( sokoban_tiles, 0, 2*magnify, magnify,
c, b, magnify, magnify ); c, b, magnify, magnify );
#else #else
@ -482,7 +478,7 @@ static void update_screen(void)
case '@': /* this is you */ case '@': /* this is you */
{ {
#ifdef HAVE_LCD_COLOR #if LCD_DEPTH >= 1
rb->lcd_bitmap_part( sokoban_tiles, 0, 5*magnify, magnify, rb->lcd_bitmap_part( sokoban_tiles, 0, 5*magnify, magnify,
c, b, magnify, magnify ); c, b, magnify, magnify );
#else #else
@ -503,7 +499,7 @@ static void update_screen(void)
case '%': /* this is a box on a home spot */ case '%': /* this is a box on a home spot */
#ifdef HAVE_LCD_COLOR #if LCD_DEPTH >= 1
rb->lcd_bitmap_part( sokoban_tiles, 0, 3*magnify, magnify, rb->lcd_bitmap_part( sokoban_tiles, 0, 3*magnify, magnify,
c, b, magnify, magnify ); c, b, magnify, magnify );
#else #else
@ -513,7 +509,7 @@ static void update_screen(void)
#endif #endif
break; break;
#ifdef HAVE_LCD_COLOR #if LCD_DEPTH >= 1
default: default:
rb->lcd_bitmap_part( sokoban_tiles, 0, 0*magnify, magnify, rb->lcd_bitmap_part( sokoban_tiles, 0, 0*magnify, magnify,
c, b, magnify, magnify ); c, b, magnify, magnify );