diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 21:46:45 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 21:46:45 +0000 |
commit | ab9fd1840b8025336081bd72fb9dbaea7b9909dd (patch) | |
tree | 4c410bffcf1a9de2ce55a59bef45e3ecfa183a62 /apps/plugins/snake.c | |
parent | 8418a2c94a97da1d6f42f21dc348aadd1e177d77 (diff) |
plugins: use lcd_putsf/lcd_putsxyf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/snake.c')
-rw-r--r-- | apps/plugins/snake.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugins/snake.c b/apps/plugins/snake.c index 5ae941a655..eb2b311fc9 100644 --- a/apps/plugins/snake.c +++ b/apps/plugins/snake.c @@ -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); |