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
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue