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.tar.gz 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.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 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[]; | |||
302 | #define Flag 10 | 302 | #define Flag 10 |
303 | #define Unknown 11 | 303 | #define Unknown 11 |
304 | #define ExplodedMine 12 | 304 | #define ExplodedMine 12 |
305 | #define WrongFlag 13 | ||
306 | #define CorrectFlag 14 | ||
305 | 307 | ||
306 | #define draw_tile( num, x, y ) \ | 308 | #define draw_tile( num, x, y ) \ |
307 | rb->lcd_bitmap_part( minesweeper_tiles, 0, num * TileSize, \ | 309 | rb->lcd_bitmap_part( minesweeper_tiles, 0, num * TileSize, \ |
@@ -562,17 +564,18 @@ void mine_show( void ) | |||
562 | if( minefield[i][j].mine ) | 564 | if( minefield[i][j].mine ) |
563 | { | 565 | { |
564 | if( minefield[i][j].known ) | 566 | if( minefield[i][j].known ) |
565 | { | ||
566 | draw_tile( ExplodedMine, j, i ); | 567 | draw_tile( ExplodedMine, j, i ); |
567 | } | 568 | else if( minefield[i][j].flag ) |
569 | draw_tile( CorrectFlag, j, i ); | ||
568 | else | 570 | else |
569 | { | ||
570 | draw_tile( Mine, j, i ); | 571 | draw_tile( Mine, j, i ); |
571 | } | ||
572 | } | 572 | } |
573 | else | 573 | else |
574 | { | 574 | { |
575 | draw_tile( minefield[i][j].neighbors, j, i ); | 575 | if( minefield[i][j].flag ) |
576 | draw_tile( WrongFlag, j, i ); | ||
577 | else | ||
578 | draw_tile( minefield[i][j].neighbors, j, i ); | ||
576 | } | 579 | } |
577 | } | 580 | } |
578 | } | 581 | } |