forked from len0rd/rockbox
Show the high score on the bottom of the screen instead of sharing the top line with the current score.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13977 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ea0d2cf7d6
commit
9b8925e56d
1 changed files with 4 additions and 11 deletions
|
@ -579,7 +579,7 @@ static void chopDrawParticle(struct CParticle *mParticle)
|
|||
static void chopDrawScene(void)
|
||||
{
|
||||
char s[30];
|
||||
int w;
|
||||
int w,h;
|
||||
#if LCD_DEPTH > 2
|
||||
rb->lcd_set_background(LCD_BLACK);
|
||||
#elif LCD_DEPTH == 2
|
||||
|
@ -604,19 +604,12 @@ static void chopDrawScene(void)
|
|||
rb->lcd_set_foreground(LCD_WHITE);
|
||||
#endif
|
||||
|
||||
#if LCD_WIDTH <= 128
|
||||
rb->snprintf(s, sizeof(s), "Dist: %d", score);
|
||||
rb->lcd_putsxy(1, 1, s);
|
||||
rb->snprintf(s, sizeof(s), "Hi: %d", highscore);
|
||||
rb->lcd_getstringsize(s, &w, NULL);
|
||||
rb->lcd_putsxy(LCD_WIDTH - 1 - w, 1, s);
|
||||
#else
|
||||
|
||||
rb->snprintf(s, sizeof(s), "Distance: %d", score);
|
||||
rb->lcd_putsxy(2, 2, s);
|
||||
rb->snprintf(s, sizeof(s), "Best: %d", highscore);
|
||||
rb->lcd_getstringsize(s, &w, NULL);
|
||||
rb->lcd_putsxy(LCD_WIDTH - 2 - w, 2, s);
|
||||
#endif
|
||||
rb->lcd_getstringsize(s, &w, &h);
|
||||
rb->lcd_putsxy(2, LCD_HEIGHT-h-2, s);
|
||||
rb->lcd_set_drawmode(DRMODE_SOLID);
|
||||
|
||||
rb->lcd_update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue