summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2009-12-30 19:00:33 +0000
committerAntoine Cellerier <dionoea@videolan.org>2009-12-30 19:00:33 +0000
commitd2e9828a2881e2cd6cb4c14f405af8da93a31db2 (patch)
treeb37506408318097a5ac2cc8ce90a4327964a7741 /apps
parent3358f0e925529b914e97a2528ae3652d635fde96 (diff)
downloadrockbox-d2e9828a2881e2cd6cb4c14f405af8da93a31db2.tar.gz
rockbox-d2e9828a2881e2cd6cb4c14f405af8da93a31db2.tar.bz2
rockbox-d2e9828a2881e2cd6cb4c14f405af8da93a31db2.zip
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.bmpbin4214 -> 4854 bytes
-rw-r--r--apps/plugins/bitmaps/native/minesweeper_tiles.12x12x2.bmpbin2950 -> 3238 bytes
-rw-r--r--apps/plugins/bitmaps/native/minesweeper_tiles.12x12x24.bmpbin5672 -> 6534 bytes
-rw-r--r--apps/plugins/bitmaps/native/minesweeper_tiles.16x16x24.bmpbin10040 -> 11574 bytes
-rw-r--r--apps/plugins/bitmaps/native/minesweeper_tiles.8x8x1.bmpbin2550 -> 2934 bytes
-rw-r--r--apps/plugins/minesweeper.c13
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
index 6fef797fbf..5a60c650e4 100644
--- a/apps/plugins/bitmaps/native/minesweeper_tiles.10x10x24.bmp
+++ b/apps/plugins/bitmaps/native/minesweeper_tiles.10x10x24.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x2.bmp b/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x2.bmp
index 191e79e5f7..efba93df67 100644
--- a/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x2.bmp
+++ b/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x2.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x24.bmp b/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x24.bmp
index 9f1fd64a44..5e077b6223 100644
--- a/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x24.bmp
+++ b/apps/plugins/bitmaps/native/minesweeper_tiles.12x12x24.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/minesweeper_tiles.16x16x24.bmp b/apps/plugins/bitmaps/native/minesweeper_tiles.16x16x24.bmp
index 9e7c4ee8cf..23661595df 100644
--- a/apps/plugins/bitmaps/native/minesweeper_tiles.16x16x24.bmp
+++ b/apps/plugins/bitmaps/native/minesweeper_tiles.16x16x24.bmp
Binary files differ
diff --git a/apps/plugins/bitmaps/native/minesweeper_tiles.8x8x1.bmp b/apps/plugins/bitmaps/native/minesweeper_tiles.8x8x1.bmp
index 610fbac1fb..d1282a4d98 100644
--- a/apps/plugins/bitmaps/native/minesweeper_tiles.8x8x1.bmp
+++ b/apps/plugins/bitmaps/native/minesweeper_tiles.8x8x1.bmp
Binary files differ
diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c
index 2f31225338..1805c2251a 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 );
}
}
}