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
This commit is contained in:
Antoine Cellerier 2009-12-30 19:00:33 +00:00
parent 3358f0e925
commit d2e9828a28
6 changed files with 8 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Before After
Before After

View file

@ -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,16 +564,17 @@ 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
{
if( minefield[i][j].flag )
draw_tile( WrongFlag, j, i );
else
draw_tile( minefield[i][j].neighbors, j, i );
}
}