diff options
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) | |||
759 | static void star_display_board_info(int current_level) | 759 | static void star_display_board_info(int current_level) |
760 | { | 760 | { |
761 | int label_pos_y, tile_pos_y; | 761 | int label_pos_y, tile_pos_y; |
762 | char str_info[32]; | ||
763 | 762 | ||
764 | if (TILE_HEIGHT > char_height) | 763 | if (TILE_HEIGHT > char_height) |
765 | { | 764 | { |
@@ -772,10 +771,9 @@ static void star_display_board_info(int current_level) | |||
772 | tile_pos_y = label_pos_y + (char_height - TILE_HEIGHT) / 2; | 771 | tile_pos_y = label_pos_y + (char_height - TILE_HEIGHT) / 2; |
773 | } | 772 | } |
774 | 773 | ||
775 | rb->snprintf(str_info, sizeof(str_info), "L:%02d", current_level + 1); | 774 | rb->lcd_putsxyf(STAR_OFFSET_X, label_pos_y, "L:%02d", current_level + 1); |
776 | rb->lcd_putsxy(STAR_OFFSET_X, label_pos_y, str_info); | 775 | rb->lcd_putsxyf(LCD_WIDTH/2 - 2 * char_width, label_pos_y, "S:%02d", |
777 | rb->snprintf(str_info, sizeof(str_info), "S:%02d", star_count); | 776 | star_count); |
778 | rb->lcd_putsxy(LCD_WIDTH/2 - 2 * char_width, label_pos_y, str_info); | ||
779 | rb->lcd_putsxy(STAR_OFFSET_X + (STAR_WIDTH-1) * TILE_WIDTH - 2 * char_width, | 777 | rb->lcd_putsxy(STAR_OFFSET_X + (STAR_WIDTH-1) * TILE_WIDTH - 2 * char_width, |
780 | label_pos_y, "C:"); | 778 | label_pos_y, "C:"); |
781 | 779 | ||