e2a73dc389
minesweeper.c: clean source code (ipod keys still need to be changed) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10562 a1c6a512-1295-4272-9138-f99709370657
295 lines
8.3 KiB
Text
295 lines
8.3 KiB
Text
#ifdef HAVE_LCD_BITMAP
|
|
|
|
/* Bubbles */
|
|
#if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64)
|
|
bubbles_emblem.112x64x1.bmp
|
|
#elif (LCD_WIDTH == 138) && (LCD_HEIGHT == 110)
|
|
bubbles_emblem.138x110x2.bmp
|
|
#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && !defined(HAVE_LCD_COLOR)
|
|
bubbles_emblem.160x128x2.bmp
|
|
#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && defined(HAVE_LCD_COLOR)
|
|
bubbles_emblem.160x128x16.bmp
|
|
bubbles_left.160x128x16.bmp
|
|
bubbles_right.160x128x16.bmp
|
|
#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132)
|
|
bubbles_emblem.160x128x16.bmp
|
|
bubbles_left.176x132x16.bmp
|
|
bubbles_right.176x132x16.bmp
|
|
#elif (LCD_WIDTH == 220) && (LCD_HEIGHT == 176)
|
|
bubbles_emblem.220x176x16.bmp
|
|
bubbles_left.220x176x16.bmp
|
|
bubbles_right.220x176x16.bmp
|
|
#elif (LCD_WIDTH == 240) && (LCD_HEIGHT == 320)
|
|
bubbles_emblem.220x176x16.bmp
|
|
bubbles_left.240x320x16.bmp
|
|
bubbles_right.240x320x16.bmp
|
|
#elif (LCD_WIDTH == 320) && (LCD_HEIGHT == 240)
|
|
bubbles_emblem.320x240x16.bmp
|
|
bubbles_left.320x240x16.bmp
|
|
bubbles_right.320x240x16.bmp
|
|
#endif
|
|
|
|
/* ChessBox */
|
|
#if (LCD_WIDTH >= 240) && (LCD_HEIGHT >= 240) & (LCD_DEPTH >= 16)
|
|
chessbox_pieces.240x240x16.bmp
|
|
#elif (LCD_WIDTH >= 176) && (LCD_HEIGHT >= 176) & (LCD_DEPTH >= 16)
|
|
chessbox_pieces.176x176x16.bmp
|
|
#elif (LCD_WIDTH >= 128) && (LCD_HEIGHT >= 128) & (LCD_DEPTH > 1)
|
|
chessbox_pieces.128x128x2.bmp
|
|
#elif (LCD_WIDTH >= 128) && (LCD_HEIGHT >= 128)
|
|
chessbox_pieces.128x128x1.bmp
|
|
#elif (LCD_WIDTH >= 104) && (LCD_HEIGHT >= 104) & (LCD_DEPTH > 1)
|
|
chessbox_pieces.104x104x2.bmp
|
|
#elif (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) & (LCD_DEPTH == 1)
|
|
chessbox_pieces.80x64x1.bmp
|
|
#elif (LCD_WIDTH >= 64) && (LCD_HEIGHT >= 64)
|
|
chessbox_pieces.64x64x1.bmp
|
|
#endif
|
|
|
|
/* Jewels */
|
|
#if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64)
|
|
jewels.112x64x1.bmp
|
|
#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 64)
|
|
jewels.112x64x1.bmp
|
|
#elif (LCD_WIDTH == 138) && (LCD_HEIGHT == 110)
|
|
jewels.138x110x1.bmp
|
|
#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && !defined(HAVE_LCD_COLOR)
|
|
jewels.160x128x1.bmp
|
|
#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && defined(HAVE_LCD_COLOR)
|
|
jewels.160x128x16.bmp
|
|
#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132)
|
|
jewels.160x128x16.bmp
|
|
#elif (LCD_WIDTH == 220) && (LCD_HEIGHT == 176)
|
|
jewels.220x176x16.bmp
|
|
#elif (LCD_WIDTH == 240) && (LCD_HEIGHT == 320)
|
|
jewels.220x176x16.bmp
|
|
#elif (LCD_WIDTH == 320) && (LCD_HEIGHT == 240)
|
|
jewels.320x240x16.bmp
|
|
#endif
|
|
|
|
/* Snake2 */
|
|
#if (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240) && (LCD_DEPTH >= 16)
|
|
snake2_header1.320x240x16.bmp
|
|
snake2_header2.320x240x16.bmp
|
|
snake2_left.320x240x16.bmp
|
|
snake2_right.320x240x16.bmp
|
|
snake2_bottom.320x240x16.bmp
|
|
#elif (LCD_WIDTH >= 240) && (LCD_HEIGHT >= 192) && (LCD_DEPTH >= 16)
|
|
snake2_header1.240x320x16.bmp
|
|
snake2_header2.240x320x16.bmp
|
|
snake2_left.240x320x16.bmp
|
|
snake2_right.240x320x16.bmp
|
|
snake2_bottom.240x320x16.bmp
|
|
#elif (LCD_WIDTH >= 220) && (LCD_HEIGHT >= 176) && (LCD_DEPTH >= 16)
|
|
snake2_header1.220x176x16.bmp
|
|
snake2_header2.220x176x16.bmp
|
|
snake2_left.220x176x16.bmp
|
|
snake2_right.220x176x16.bmp
|
|
snake2_bottom.220x176x16.bmp
|
|
#elif (LCD_WIDTH >= 176) && (LCD_HEIGHT >= 132) && (LCD_DEPTH >= 16)
|
|
snake2_header1.176x132x16.bmp
|
|
snake2_header2.176x132x16.bmp
|
|
snake2_left.176x132x16.bmp
|
|
snake2_right.176x132x16.bmp
|
|
snake2_bottom.176x132x16.bmp
|
|
#elif (LCD_WIDTH >= 160) && (LCD_HEIGHT >= 128) && (LCD_DEPTH >= 16)
|
|
snake2_header1.160x128x16.bmp
|
|
snake2_header2.160x128x16.bmp
|
|
snake2_left.160x128x16.bmp
|
|
snake2_right.160x128x16.bmp
|
|
snake2_bottom.160x128x16.bmp
|
|
#elif (LCD_WIDTH >= 160) && (LCD_HEIGHT >= 128) && (LCD_DEPTH >= 1)
|
|
snake2_header1.160x128x2.bmp
|
|
snake2_header2.160x128x2.bmp
|
|
snake2_left.160x128x2.bmp
|
|
snake2_right.160x128x2.bmp
|
|
snake2_bottom.160x128x2.bmp
|
|
#endif
|
|
|
|
/* Sokoban*/
|
|
#ifdef HAVE_LCD_COLOR
|
|
#if LCD_HEIGHT >= 240
|
|
sokoban_tiles.14x14.bmp
|
|
#elif LCD_HEIGHT >= 176
|
|
sokoban_tiles.9x9.bmp
|
|
#else
|
|
/* LCD_HEIGHT >= 128 */
|
|
sokoban_tiles.6x6.bmp
|
|
#endif
|
|
#elif LCD_DEPTH >= 2
|
|
sokoban_tiles.6x6x2.bmp
|
|
#endif
|
|
|
|
/* Flip it */
|
|
#ifdef HAVE_LCD_COLOR
|
|
#if LCD_HEIGHT >= 200
|
|
flipit_tokens.50x50.bmp
|
|
#elif LCD_HEIGHT >= 160
|
|
flipit_tokens.40x40.bmp
|
|
#else
|
|
flipit_tokens.30x30.bmp
|
|
#endif
|
|
#elif LCD_DEPTH >= 2
|
|
#if LCD_WIDTH >= 150
|
|
flipit_tokens.30x30x2.bmp
|
|
#else
|
|
flipit_tokens.20x20x2.bmp
|
|
#endif
|
|
#endif
|
|
|
|
/* Star */
|
|
#if defined( HAVE_LCD_COLOR )
|
|
#if LCD_WIDTH >= 320
|
|
star_tiles.20x20.bmp
|
|
#elif LCD_WIDTH >= 220
|
|
star_tiles.13x13.bmp
|
|
#else
|
|
star_tiles.10x10.bmp
|
|
#endif
|
|
#elif LCD_DEPTH > 1
|
|
star_tiles.10x10.grey.bmp
|
|
#endif
|
|
|
|
/* Solitaire */
|
|
#ifdef HAVE_LCD_COLOR
|
|
#if (LCD_WIDTH >= 220) && (LCD_HEIGHT >= 176)
|
|
solitaire_cardback.220x176x16.bmp
|
|
#else
|
|
solitaire_cardback.176x132x16.bmp
|
|
#endif
|
|
#endif
|
|
#if defined( HAVE_LCD_COLOR )
|
|
solitaire_numbers.8x10x1.bmp
|
|
solitaire_suits.8x10x16.bmp
|
|
#elif LCD_HEIGHT > 64
|
|
solitaire_numbers.8x10x1.bmp
|
|
solitaire_suits.8x10x1.bmp
|
|
#else
|
|
solitaire_numbers.6x6x1.bmp
|
|
solitaire_suits.6x6x1.bmp
|
|
#endif
|
|
#ifdef HAVE_LCD_COLOR
|
|
solitaire_suitsi.15x16x16.bmp
|
|
#else
|
|
solitaire_suitsi.15x16x1.bmp
|
|
#endif
|
|
|
|
/* Sudoku */
|
|
#if LCD_WIDTH >= LCD_HEIGHT
|
|
#if (LCD_WIDTH == 112) && (LCD_HEIGHT==64) && (LCD_DEPTH == 1)
|
|
sudoku_start.112x64x1.bmp
|
|
sudoku_normal.112x64x1.bmp
|
|
sudoku_inverse.112x64x1.bmp
|
|
#elif (LCD_WIDTH == 138) && (LCD_HEIGHT == 110) && (LCD_DEPTH >= 2)
|
|
sudoku_start.138x110x2.bmp
|
|
sudoku_normal.138x110x2.bmp
|
|
sudoku_inverse.138x110x2.bmp
|
|
#elif ((LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && (LCD_DEPTH >= 2)) || \
|
|
((LCD_WIDTH == 176) && (LCD_HEIGHT == 132) && (LCD_DEPTH >= 2))
|
|
sudoku_start.160x128x2.bmp
|
|
sudoku_normal.160x128x2.bmp
|
|
sudoku_inverse.160x128x2.bmp
|
|
#elif (LCD_WIDTH == 220) && (LCD_HEIGHT == 176) && (LCD_DEPTH == 16)
|
|
sudoku_start.220x176x16.bmp
|
|
sudoku_normal.220x176x16.bmp
|
|
sudoku_inverse.220x176x16.bmp
|
|
#elif (LCD_WIDTH >= 320) && (LCD_HEIGHT >= 240) && (LCD_DEPTH == 16)
|
|
sudoku_start.320x240x16.bmp
|
|
sudoku_normal.320x240x16.bmp
|
|
sudoku_inverse.320x240x16.bmp
|
|
#endif
|
|
#else
|
|
#if (LCD_WIDTH >= 240) && (LCD_HEIGHT >= 320) && (LCD_DEPTH == 16)
|
|
sudoku_start.320x240x16.bmp
|
|
sudoku_normal.320x240x16.bmp
|
|
sudoku_inverse.320x240x16.bmp
|
|
#endif
|
|
#endif
|
|
|
|
/* Brickmania */
|
|
|
|
#if (LCD_WIDTH >= 220) && (LCD_HEIGHT >= 176) && (LCD_DEPTH == 16)
|
|
#if (LCD_WIDTH == 320)
|
|
brickmania_menu_bg.320x240x16.bmp
|
|
#else
|
|
brickmania_menu_bg.220x176x16.bmp
|
|
#endif
|
|
brickmania_menu_items.220x176x16.bmp
|
|
brickmania_ball.220x176x16.bmp
|
|
brickmania_bricks.220x176x16.bmp
|
|
brickmania_gameover.220x176x16.bmp
|
|
brickmania_pads.220x176x16.bmp
|
|
brickmania_powerups.220x176x16.bmp
|
|
brickmania_break.220x176x16.bmp
|
|
|
|
#elif (((LCD_WIDTH == 160) && (LCD_HEIGHT == 128)) || \
|
|
((LCD_WIDTH == 138) && (LCD_HEIGHT == 110))) && (LCD_DEPTH == 2)
|
|
brickmania_menu_items.160x128x2.bmp
|
|
brickmania_ball.160x128x2.bmp
|
|
#if (LCD_WIDTH == 160)
|
|
brickmania_bricks.160x128x2.bmp
|
|
#else
|
|
brickmania_bricks.138x110x2.bmp
|
|
#endif
|
|
brickmania_gameover.160x128x2.bmp
|
|
brickmania_menu_bg.160x128x2.bmp
|
|
brickmania_pads.160x128x2.bmp
|
|
brickmania_powerups.160x128x2.bmp
|
|
brickmania_break.160x128x2.bmp
|
|
|
|
#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && (LCD_DEPTH == 16)
|
|
brickmania_menu_items.160x128x16.bmp
|
|
brickmania_ball.160x128x16.bmp
|
|
brickmania_bricks.160x128x16.bmp
|
|
brickmania_gameover.160x128x16.bmp
|
|
brickmania_menu_bg.160x128x16.bmp
|
|
brickmania_pads.160x128x16.bmp
|
|
brickmania_powerups.160x128x16.bmp
|
|
brickmania_break.160x128x16.bmp
|
|
|
|
#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132) && (LCD_DEPTH == 16)
|
|
brickmania_menu_items.176x132x16.bmp
|
|
brickmania_ball.176x132x16.bmp
|
|
brickmania_bricks.176x132x16.bmp
|
|
brickmania_gameover.176x132x16.bmp
|
|
brickmania_menu_bg.176x132x16.bmp
|
|
brickmania_pads.176x132x16.bmp
|
|
brickmania_powerups.176x132x16.bmp
|
|
brickmania_break.176x132x16.bmp
|
|
|
|
#endif
|
|
|
|
/* Tetrox */
|
|
#if (LCD_WIDTH == 320) && (LCD_HEIGHT == 240) && (LCD_DEPTH == 16)
|
|
tetrox_background.320x240x16.bmp
|
|
#elif (LCD_WIDTH >= 220) && (LCD_HEIGHT >= 176) && (LCD_DEPTH == 16)
|
|
tetrox_background.220x176x16.bmp
|
|
#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132) && (LCD_DEPTH == 16)
|
|
tetrox_background.176x132x16.bmp
|
|
#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && (LCD_DEPTH >= 16)
|
|
tetrox_background.160x128x16.bmp
|
|
#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && (LCD_DEPTH == 2)
|
|
tetrox_background.160x128x2.bmp
|
|
#elif (LCD_WIDTH == 138) && (LCD_HEIGHT == 110) && (LCD_DEPTH == 2)
|
|
tetrox_background.138x110x2.bmp
|
|
#endif
|
|
|
|
#ifdef HAVE_LCD_COLOR
|
|
/* Rockpaint */
|
|
rockpaint.bmp
|
|
rockpaint_hsvrgb.bmp
|
|
#endif
|
|
|
|
#if defined( HAVE_LCD_COLOR )
|
|
#if ( LCD_HEIGHT * LCD_WIDTH ) / ( 16 * 16 ) >= 130
|
|
minesweeper_tiles.16x16x24.bmp
|
|
#else
|
|
minesweeper_tiles.12x12x24.bmp
|
|
#endif
|
|
#elif LCD_DEPTH > 1
|
|
minesweeper_tiles.12x12x2.bmp
|
|
#else
|
|
minesweeper_tiles.8x8x1.bmp
|
|
#endif
|
|
|
|
#endif /* HAVE_LCD_BITMAP */
|