diff options
| author | Antoine Cellerier <dionoea@videolan.org> | 2009-12-30 19:00:33 +0000 |
|---|---|---|
| committer | Antoine Cellerier <dionoea@videolan.org> | 2009-12-30 19:00:33 +0000 |
| commit | d2e9828a2881e2cd6cb4c14f405af8da93a31db2 (patch) | |
| tree | b37506408318097a5ac2cc8ce90a4327964a7741 /apps | |
| parent | 3358f0e925529b914e97a2528ae3652d635fde96 (diff) | |
| download | rockbox-d2e9828a2881e2cd6cb4c14f405af8da93a31db2.zip rockbox-d2e9828a2881e2cd6cb4c14f405af8da93a31db2.tar.gz rockbox-d2e9828a2881e2cd6cb4c14f405af8da93a31db2.tar.bz2 rockbox-d2e9828a2881e2cd6cb4c14f405af8da93a31db2.tar.xz | |
Add bitmaps for correct and wrong flags when showing the full board. (Feel free to change the graphics)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24127 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/plugins/bitmaps/native/minesweeper_tiles.10x10x24.bmp | bin | 4214 -> 4854 bytes | |||
| -rw-r--r-- | apps/plugins/bitmaps/native/minesweeper_tiles.12x12x2.bmp | bin | 2950 -> 3238 bytes | |||
| -rw-r--r-- | apps/plugins/bitmaps/native/minesweeper_tiles.12x12x24.bmp | bin | 5672 -> 6534 bytes | |||
| -rw-r--r-- | apps/plugins/bitmaps/native/minesweeper_tiles.16x16x24.bmp | bin | 10040 -> 11574 bytes | |||
| -rw-r--r-- | apps/plugins/bitmaps/native/minesweeper_tiles.8x8x1.bmp | bin | 2550 -> 2934 bytes | |||
| -rw-r--r-- | apps/plugins/minesweeper.c | 13 |
6 files changed, 8 insertions, 5 deletions
diff --git a/apps/plugins/bitmaps/native/minesweeper_tiles.10x10x24.bmp b/apps/plugins/bitmaps/native/minesweeper_tiles.10x10x24.bmp Binary files differindex 6fef797..5a60c65 100644 --- a/apps/plugins/bitmaps/native/minesweeper_tiles.10x10x24.bmp +++ b/apps/plugins/bitmaps/native/minesweeper_tiles.10x10x24.bmp diff --git a/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x2.bmp b/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x2.bmp Binary files differindex 191e79e..efba93d 100644 --- a/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x2.bmp +++ b/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x2.bmp diff --git a/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x24.bmp b/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x24.bmp Binary files differindex 9f1fd64..5e077b6 100644 --- a/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x24.bmp +++ b/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x24.bmp diff --git a/apps/plugins/bitmaps/native/minesweeper_tiles.16x16x24.bmp b/apps/plugins/bitmaps/native/minesweeper_tiles.16x16x24.bmp Binary files differindex 9e7c4ee..2366159 100644 --- a/apps/plugins/bitmaps/native/minesweeper_tiles.16x16x24.bmp +++ b/apps/plugins/bitmaps/native/minesweeper_tiles.16x16x24.bmp diff --git a/apps/plugins/bitmaps/native/minesweeper_tiles.8x8x1.bmp b/apps/plugins/bitmaps/native/minesweeper_tiles.8x8x1.bmp Binary files differindex 610fbac..d1282a4 100644 --- a/apps/plugins/bitmaps/native/minesweeper_tiles.8x8x1.bmp +++ b/apps/plugins/bitmaps/native/minesweeper_tiles.8x8x1.bmp diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c index 2f31225..1805c22 100644 --- a/apps/plugins/minesweeper.c +++ b/apps/plugins/minesweeper.c @@ -302,6 +302,8 @@ extern const fb_data minesweeper_tiles[]; #define Flag 10 #define Unknown 11 #define ExplodedMine 12 +#define WrongFlag 13 +#define CorrectFlag 14 #define draw_tile( num, x, y ) \ rb->lcd_bitmap_part( minesweeper_tiles, 0, num * TileSize, \ @@ -562,17 +564,18 @@ void mine_show( void ) if( minefield[i][j].mine ) { if( minefield[i][j].known ) - { draw_tile( ExplodedMine, j, i ); - } + else if( minefield[i][j].flag ) + draw_tile( CorrectFlag, j, i ); else - { draw_tile( Mine, j, i ); - } } else { - draw_tile( minefield[i][j].neighbors, j, i ); + if( minefield[i][j].flag ) + draw_tile( WrongFlag, j, i ); + else + draw_tile( minefield[i][j].neighbors, j, i ); } } } |