diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-07-25 08:30:40 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-07-25 08:30:40 +0000 |
commit | 9b8925e56de605e22aff3700d1cd13c70814b25f (patch) | |
tree | d83694d44ed920e42e5b5b5161802d4474fdfc87 /apps/plugins | |
parent | ea0d2cf7d6587a25030aeadc9240800b120ed89b (diff) | |
download | rockbox-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/plugins')
-rw-r--r-- | apps/plugins/chopper.c | 15 |
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) | |||
579 | static void chopDrawScene(void) | 579 | static void chopDrawScene(void) |
580 | { | 580 | { |
581 | char s[30]; | 581 | char s[30]; |
582 | int w; | 582 | int w,h; |
583 | #if LCD_DEPTH > 2 | 583 | #if LCD_DEPTH > 2 |
584 | rb->lcd_set_background(LCD_BLACK); | 584 | rb->lcd_set_background(LCD_BLACK); |
585 | #elif LCD_DEPTH == 2 | 585 | #elif LCD_DEPTH == 2 |
@@ -604,19 +604,12 @@ static void chopDrawScene(void) | |||
604 | rb->lcd_set_foreground(LCD_WHITE); | 604 | rb->lcd_set_foreground(LCD_WHITE); |
605 | #endif | 605 | #endif |
606 | 606 | ||
607 | #if LCD_WIDTH <= 128 | 607 | |
608 | rb->snprintf(s, sizeof(s), "Dist: %d", score); | ||
609 | rb->lcd_putsxy(1, 1, s); | ||
610 | rb->snprintf(s, sizeof(s), "Hi: %d", highscore); | ||
611 | rb->lcd_getstringsize(s, &w, NULL); | ||
612 | rb->lcd_putsxy(LCD_WIDTH - 1 - w, 1, s); | ||
613 | #else | ||
614 | rb->snprintf(s, sizeof(s), "Distance: %d", score); | 608 | rb->snprintf(s, sizeof(s), "Distance: %d", score); |
615 | rb->lcd_putsxy(2, 2, s); | 609 | rb->lcd_putsxy(2, 2, s); |
616 | rb->snprintf(s, sizeof(s), "Best: %d", highscore); | 610 | rb->snprintf(s, sizeof(s), "Best: %d", highscore); |
617 | rb->lcd_getstringsize(s, &w, NULL); | 611 | rb->lcd_getstringsize(s, &w, &h); |
618 | rb->lcd_putsxy(LCD_WIDTH - 2 - w, 2, s); | 612 | rb->lcd_putsxy(2, LCD_HEIGHT-h-2, s); |
619 | #endif | ||
620 | rb->lcd_set_drawmode(DRMODE_SOLID); | 613 | rb->lcd_set_drawmode(DRMODE_SOLID); |
621 | 614 | ||
622 | rb->lcd_update(); | 615 | rb->lcd_update(); |