summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
579static void chopDrawScene(void) 579static 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();