forked from len0rd/rockbox
plugins: use lcd_putsf/lcd_putsxyf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8418a2c94a
commit
ab9fd1840b
52 changed files with 173 additions and 412 deletions
|
@ -260,18 +260,14 @@ static struct configdata config[] = {
|
|||
|
||||
static void snake_die (void)
|
||||
{
|
||||
char pscore[17];
|
||||
rb->lcd_clear_display();
|
||||
rb->snprintf(pscore,sizeof(pscore),"Your score: %d",score);
|
||||
rb->lcd_puts(0,0,"Oops...");
|
||||
rb->lcd_puts(0,1, pscore);
|
||||
rb->lcd_putsf(0,1,"Your score: %d",score);
|
||||
if (highscore_update(score, level, "", highscores, NUM_SCORES) == 0) {
|
||||
rb->lcd_puts(0,2,"New High Score!");
|
||||
}
|
||||
else {
|
||||
rb->snprintf(pscore, sizeof(pscore),
|
||||
"High Score: %d", highscores[0].score);
|
||||
rb->lcd_puts(0,2,pscore);
|
||||
rb->lcd_putsf(0,2,"High Score: %d", highscores[0].score);
|
||||
}
|
||||
rb->lcd_update();
|
||||
rb->sleep(3*HZ);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue