summaryrefslogtreecommitdiff
path: root/apps/plugins/brickmania.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r--apps/plugins/brickmania.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index 38014e73a6..b434c77e25 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -123,6 +123,8 @@ PLUGIN_HEADER
123#define SELECT BUTTON_SELECT 123#define SELECT BUTTON_SELECT
124#define UP BUTTON_SCROLL_UP 124#define UP BUTTON_SCROLL_UP
125#define DOWN BUTTON_SCROLL_DOWN 125#define DOWN BUTTON_SCROLL_DOWN
126#define SCROLL_FWD(x) (0)
127#define SCROLL_BACK(x) (0)
126 128
127#elif CONFIG_KEYPAD == IRIVER_H10_PAD /* grayscale at the moment */ 129#elif CONFIG_KEYPAD == IRIVER_H10_PAD /* grayscale at the moment */
128 130
@@ -416,18 +418,24 @@ extern const fb_data brickmania_bricks[];
416#define STRINGPOS_navi 44 418#define STRINGPOS_navi 44
417#define STRINGPOS_flipsides 44 419#define STRINGPOS_flipsides 44
418 420
419#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132) && (LCD_DEPTH==16) 421/* nano and sansa */
422#elif (LCD_WIDTH == 176) && (LCD_HEIGHT >= 132) && (LCD_DEPTH==16)
420/* The time (in ms) for one iteration through the game loop - decrease this 423/* The time (in ms) for one iteration through the game loop - decrease this
421 to speed up the game - note that current_tick is (currently) only accurate 424 to speed up the game - note that current_tick is (currently) only accurate
422 to 10ms. 425 to 10ms.
423*/ 426*/
427
424#define CYCLETIME 30 428#define CYCLETIME 30
425 429
430#if (LCD_HEIGHT == 220)
431#define GAMESCREEN_HEIGHT 132
432#else
426#define GAMESCREEN_HEIGHT LCD_HEIGHT 433#define GAMESCREEN_HEIGHT LCD_HEIGHT
434#endif
427 435
428#define PAD_WIDTH 40 436#define PAD_WIDTH 40
429#define PAD_HEIGHT 5 437#define PAD_HEIGHT 5
430#define PAD_POS_Y LCD_HEIGHT - 7 438#define PAD_POS_Y GAMESCREEN_HEIGHT - 7
431#define BRICK_HEIGHT 7 439#define BRICK_HEIGHT 7
432#define BRICK_WIDTH 17 440#define BRICK_WIDTH 17
433#define BALL 5 441#define BALL 5
@@ -1278,6 +1286,11 @@ int game_loop(void)
1278 rb->lcd_set_drawmode(DRMODE_SOLID); 1286 rb->lcd_set_drawmode(DRMODE_SOLID);
1279 rb->lcd_clear_display(); 1287 rb->lcd_clear_display();
1280 rb->lcd_set_background(LCD_BLACK); 1288 rb->lcd_set_background(LCD_BLACK);
1289#if LCD_HEIGHT > GAMESCREEN_HEIGHT
1290 rb->lcd_set_foreground(rb->global_settings->bg_color);
1291 rb->lcd_fillrect(0, GAMESCREEN_HEIGHT, LCD_WIDTH,
1292 LCD_HEIGHT - GAMESCREEN_HEIGHT);
1293#endif
1281 rb->lcd_set_foreground(LCD_WHITE); 1294 rb->lcd_set_foreground(LCD_WHITE);
1282#else 1295#else
1283 rb->lcd_clear_display(); 1296 rb->lcd_clear_display();