diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-08-02 17:24:16 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-08-02 17:24:16 +0000 |
commit | e21081040c27fd6cb3723e8bebde9e0729cd80c0 (patch) | |
tree | 2f6cabec7c2192b77b403ab4fce60d4fef17d952 | |
parent | 374b21ef8a6905e95da245e019b7c7a69145871e (diff) |
Brickmania: Statusbar should always be drawn at the top of the screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22119 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/brickmania.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index e89eb2d748..916cb01536 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c @@ -996,29 +996,27 @@ static int brickmania_game_loop(void) /* write life num */ #if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) rb->snprintf(s, sizeof(s), "L:%d", life); - rb->lcd_putsxy(0, 0, s); #else rb->snprintf(s, sizeof(s), "Life: %d", life); - rb->lcd_putsxy(2, 2, s); #endif + rb->lcd_putsxy(0, 0, s); #if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) rb->snprintf(s, sizeof(s), "L%d", level+1); - rb->lcd_getstringsize(s, &sw, NULL); - rb->lcd_putsxy(LCD_WIDTH-sw, 0, s); #else rb->snprintf(s, sizeof(s), "Level %d", level+1); - rb->lcd_getstringsize(s, &sw, NULL); - rb->lcd_putsxy(LCD_WIDTH-sw-2, 2, s); #endif + rb->lcd_getstringsize(s, &sw, NULL); + rb->lcd_putsxy(LCD_WIDTH-sw, 0, s); + if (vscore<score) vscore++; rb->snprintf(s, sizeof(s), "%d", vscore); rb->lcd_getstringsize(s, &sw, NULL); #if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 0, s); #else - rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 2, s); + rb->lcd_putsxy(LCD_WIDTH/2-sw/2, 0, s); #endif /* continue game */ |