diff options
| author | Zakk Roberts <midkay@rockbox.org> | 2007-02-16 07:12:06 +0000 |
|---|---|---|
| committer | Zakk Roberts <midkay@rockbox.org> | 2007-02-16 07:12:06 +0000 |
| commit | d2e47ee0fde5b1a14fe1ad95578da14a4ec7c26e (patch) | |
| tree | be851e06a75f35109d3be8e60b2ad0b400c3db77 /apps/plugins | |
| parent | ce31c6fef9c170090a68de0c6bac31dc724bdd03 (diff) | |
| download | rockbox-d2e47ee0fde5b1a14fe1ad95578da14a4ec7c26e.zip rockbox-d2e47ee0fde5b1a14fe1ad95578da14a4ec7c26e.tar.gz rockbox-d2e47ee0fde5b1a14fe1ad95578da14a4ec7c26e.tar.bz2 rockbox-d2e47ee0fde5b1a14fe1ad95578da14a4ec7c26e.tar.xz | |
Implement the actual-button-name-for-game-over-message addition from my previous commit in a different way to fix builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12328 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/chopper.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c index 90e217b..88da1c6 100644 --- a/apps/plugins/chopper.c +++ b/apps/plugins/chopper.c @@ -473,6 +473,8 @@ static void checkHighScore(void) static void chopKillPlayer(void) { int w, i, button; + char text[25]; + for (i = 0; i < NUMBER_OF_PARTICLES; i++) { mParticles[i].bIsActive = 0; chopAddParticle(iPlayerPosX + iR(0,20), iPlayerPosY + iR(0,20), @@ -490,9 +492,9 @@ static void chopKillPlayer(void) rb->lcd_getstringsize("Game Over", &w, NULL); rb->lcd_putsxy(LCD_WIDTH/2 - w/2 ,LCD_HEIGHT/2 - 20, "Game Over"); - rb->lcd_getstringsize("Press " ACTIONTEXT " to continue", &w, NULL); - rb->lcd_putsxy(LCD_WIDTH/2 - w/2 ,LCD_HEIGHT/2, - "Press " ACTIONTEXT " to continue"); + rb->snprintf(text, sizeof(text), "Press %s to continue", ACTIONTEXT); + rb->lcd_getstringsize(text, &w, NULL); + rb->lcd_putsxy(LCD_WIDTH/2 - w/2 ,LCD_HEIGHT/2, text); rb->lcd_update(); rb->lcd_set_drawmode(DRMODE_SOLID); |