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/star.c | |
parent | 8418a2c94a97da1d6f42f21dc348aadd1e177d77 (diff) | |
download | rockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.tar.gz rockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.tar.bz2 rockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.zip |
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/star.c')
-rw-r--r-- | apps/plugins/star.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/plugins/star.c b/apps/plugins/star.c index e5d8259d88..a653bdb4a9 100644 --- a/apps/plugins/star.c +++ b/apps/plugins/star.c @@ -759,7 +759,6 @@ static void star_transition_update(void) static void star_display_board_info(int current_level) { int label_pos_y, tile_pos_y; - char str_info[32]; if (TILE_HEIGHT > char_height) { @@ -772,10 +771,9 @@ static void star_display_board_info(int current_level) tile_pos_y = label_pos_y + (char_height - TILE_HEIGHT) / 2; } - rb->snprintf(str_info, sizeof(str_info), "L:%02d", current_level + 1); - rb->lcd_putsxy(STAR_OFFSET_X, label_pos_y, str_info); - rb->snprintf(str_info, sizeof(str_info), "S:%02d", star_count); - rb->lcd_putsxy(LCD_WIDTH/2 - 2 * char_width, label_pos_y, str_info); + rb->lcd_putsxyf(STAR_OFFSET_X, label_pos_y, "L:%02d", current_level + 1); + rb->lcd_putsxyf(LCD_WIDTH/2 - 2 * char_width, label_pos_y, "S:%02d", + star_count); rb->lcd_putsxy(STAR_OFFSET_X + (STAR_WIDTH-1) * TILE_WIDTH - 2 * char_width, label_pos_y, "C:"); |