summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/highscore.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-28 21:46:45 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-28 21:46:45 +0000
commitab9fd1840b8025336081bd72fb9dbaea7b9909dd (patch)
tree4c410bffcf1a9de2ce55a59bef45e3ecfa183a62 /apps/plugins/lib/highscore.c
parent8418a2c94a97da1d6f42f21dc348aadd1e177d77 (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/lib/highscore.c')
-rw-r--r--apps/plugins/lib/highscore.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/plugins/lib/highscore.c b/apps/plugins/lib/highscore.c
index 185930202a..ff7a166222 100644
--- a/apps/plugins/lib/highscore.c
+++ b/apps/plugins/lib/highscore.c
@@ -125,7 +125,6 @@ void highscore_show(int position, struct highscore *scores, int num_scores,
bool show_level)
{
int i, w, h;
- char str[30];
#ifdef HAVE_LCD_COLOR
unsigned bgcolor = rb->lcd_get_background();
unsigned fgcolor = rb->lcd_get_foreground();
@@ -155,14 +154,11 @@ void highscore_show(int position, struct highscore *scores, int num_scores,
rb->lcd_set_foreground(LCD_RGBPACK(245,0,0));
}
#endif
- rb->snprintf (str, sizeof (str), "%d)", i+1);
- rb->lcd_putsxy (MARGIN,3*h + h*i, str);
- rb->snprintf (str, sizeof (str), "%d", scores[i].score);
- rb->lcd_putsxy (LCD_WIDTH/4-w/4,3*h + h*i, str);
+ rb->lcd_putsxyf (MARGIN,3*h + h*i, "%d)", i+1);
+ rb->lcd_putsxyf (LCD_WIDTH/4-w/4,3*h + h*i, "%d", scores[i].score);
if(show_level) {
- rb->snprintf (str, sizeof (str), "%d", scores[i].level);
- rb->lcd_putsxy (LCD_WIDTH*3/4-w/4,3*h + h*i, str);
+ rb->lcd_putsxyf (LCD_WIDTH*3/4-w/4,3*h + h*i, "%d", scores[i].level);
}
if(i == position) {