summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-07-25 08:30:40 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-07-25 08:30:40 +0000
commit9b8925e56de605e22aff3700d1cd13c70814b25f (patch)
treed83694d44ed920e42e5b5b5161802d4474fdfc87 /apps
parentea0d2cf7d6587a25030aeadc9240800b120ed89b (diff)
downloadrockbox-9b8925e56de605e22aff3700d1cd13c70814b25f.tar.gz
rockbox-9b8925e56de605e22aff3700d1cd13c70814b25f.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/chopper.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c
index 26e70d3e42..e2706a29ec 100644
--- a/apps/plugins/chopper.c
+++ b/apps/plugins/chopper.c
@@ -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();