forked from len0rd/rockbox
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
This commit is contained in:
parent
ce31c6fef9
commit
d2e47ee0fd
1 changed files with 5 additions and 3 deletions
|
|
@ -473,6 +473,8 @@ static void checkHighScore(void)
|
||||||
static void chopKillPlayer(void)
|
static void chopKillPlayer(void)
|
||||||
{
|
{
|
||||||
int w, i, button;
|
int w, i, button;
|
||||||
|
char text[25];
|
||||||
|
|
||||||
for (i = 0; i < NUMBER_OF_PARTICLES; i++) {
|
for (i = 0; i < NUMBER_OF_PARTICLES; i++) {
|
||||||
mParticles[i].bIsActive = 0;
|
mParticles[i].bIsActive = 0;
|
||||||
chopAddParticle(iPlayerPosX + iR(0,20), iPlayerPosY + iR(0,20),
|
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_getstringsize("Game Over", &w, NULL);
|
||||||
rb->lcd_putsxy(LCD_WIDTH/2 - w/2 ,LCD_HEIGHT/2 - 20, "Game Over");
|
rb->lcd_putsxy(LCD_WIDTH/2 - w/2 ,LCD_HEIGHT/2 - 20, "Game Over");
|
||||||
rb->lcd_getstringsize("Press " ACTIONTEXT " to continue", &w, NULL);
|
rb->snprintf(text, sizeof(text), "Press %s to continue", ACTIONTEXT);
|
||||||
rb->lcd_putsxy(LCD_WIDTH/2 - w/2 ,LCD_HEIGHT/2,
|
rb->lcd_getstringsize(text, &w, NULL);
|
||||||
"Press " ACTIONTEXT " to continue");
|
rb->lcd_putsxy(LCD_WIDTH/2 - w/2 ,LCD_HEIGHT/2, text);
|
||||||
rb->lcd_update();
|
rb->lcd_update();
|
||||||
|
|
||||||
rb->lcd_set_drawmode(DRMODE_SOLID);
|
rb->lcd_set_drawmode(DRMODE_SOLID);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue