summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/chopper.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c
index 90e217b923..88da1c6fac 100644
--- a/apps/plugins/chopper.c
+++ b/apps/plugins/chopper.c
@@ -473,6 +473,8 @@ static void checkHighScore(void)
473static void chopKillPlayer(void) 473static void chopKillPlayer(void)
474{ 474{
475 int w, i, button; 475 int w, i, button;
476 char text[25];
477
476 for (i = 0; i < NUMBER_OF_PARTICLES; i++) { 478 for (i = 0; i < NUMBER_OF_PARTICLES; i++) {
477 mParticles[i].bIsActive = 0; 479 mParticles[i].bIsActive = 0;
478 chopAddParticle(iPlayerPosX + iR(0,20), iPlayerPosY + iR(0,20), 480 chopAddParticle(iPlayerPosX + iR(0,20), iPlayerPosY + iR(0,20),
@@ -490,9 +492,9 @@ static void chopKillPlayer(void)
490 492
491 rb->lcd_getstringsize("Game Over", &w, NULL); 493 rb->lcd_getstringsize("Game Over", &w, NULL);
492 rb->lcd_putsxy(LCD_WIDTH/2 - w/2 ,LCD_HEIGHT/2 - 20, "Game Over"); 494 rb->lcd_putsxy(LCD_WIDTH/2 - w/2 ,LCD_HEIGHT/2 - 20, "Game Over");
493 rb->lcd_getstringsize("Press " ACTIONTEXT " to continue", &w, NULL); 495 rb->snprintf(text, sizeof(text), "Press %s to continue", ACTIONTEXT);
494 rb->lcd_putsxy(LCD_WIDTH/2 - w/2 ,LCD_HEIGHT/2, 496 rb->lcd_getstringsize(text, &w, NULL);
495 "Press " ACTIONTEXT " to continue"); 497 rb->lcd_putsxy(LCD_WIDTH/2 - w/2 ,LCD_HEIGHT/2, text);
496 rb->lcd_update(); 498 rb->lcd_update();
497 499
498 rb->lcd_set_drawmode(DRMODE_SOLID); 500 rb->lcd_set_drawmode(DRMODE_SOLID);