From d90dd7dcca78a40524ae03cfc26475550e53fc51 Mon Sep 17 00:00:00 2001 From: jdgordon Date: Wed, 25 Jul 2007 08:30:40 +0000 Subject: [PATCH] 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 --- apps/plugins/chopper.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c index 26e70d3e4..e2706a29e 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(); -- 2.11.4.GIT