diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2010-04-20 08:14:33 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2010-04-20 08:14:33 +0000 |
commit | 16e89a4aaede40613ca4a3016d48d4548988a90d (patch) | |
tree | d128382114a82bbae445f11a52489c8bfedd0f64 /apps | |
parent | 34cd2c31ae530a8d0d8c3fa77adaaac13988aaba (diff) |
Brickmania: Move Congratulations message a bit up, so it won't get clipped by the next line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25685 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/brickmania.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index ae52babdaa..a72ca716c5 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c @@ -324,7 +324,6 @@ CONFIG_KEYPAD == SANSA_M200_PAD #define TOPMARGIN MAX(BRICK_HEIGHT, FIXED3(8)) #define STRINGPOS_FINISH (GAMESCREEN_HEIGHT - (GAMESCREEN_HEIGHT / 6)) -#define STRINGPOS_CONGRATS (STRINGPOS_FINISH - 20) #define STRINGPOS_NAVI (STRINGPOS_FINISH - 10) #define STRINGPOS_FLIP (STRINGPOS_FINISH - 10) @@ -1516,7 +1515,7 @@ static void brick_hit(int i, int j) static int brickmania_game_loop(void) { int j,i,k; - int sw; + int sw, sh; char s[30]; int sec_count=0; int end; @@ -2180,8 +2179,8 @@ static int brickmania_game_loop(void) } else { - rb->lcd_getstringsize("Congratulations!", &sw, NULL); - rb->lcd_putsxy(LCD_WIDTH/2-sw/2, INT3(STRINGPOS_CONGRATS), + rb->lcd_getstringsize("Congratulations!", &sw, &sh); + rb->lcd_putsxy(LCD_WIDTH/2-sw/2, INT3(STRINGPOS_FINISH) - 2 * sh, "Congratulations!"); #if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) rb->lcd_getstringsize("No more levels", &sw, NULL); |