summaryrefslogtreecommitdiffstats
path: root/apps/plugins/starfield.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/starfield.c')
-rw-r--r--apps/plugins/starfield.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c
index 7f17970a84..6ddc268285 100644
--- a/apps/plugins/starfield.c
+++ b/apps/plugins/starfield.c
@@ -377,7 +377,6 @@ static struct starfield starfield;
int plugin_main(void)
{
- char str_buffer[40];
int button, avg_peak, t_disp=0;
int font_h, font_w;
bool pulse=true;
@@ -449,14 +448,11 @@ int plugin_main(void)
if (t_disp > 0)
{
--t_disp;
- rb->snprintf(str_buffer, sizeof(str_buffer),
- "star:%d speed:%d",
- starfield.nb_stars,
- starfield.z_move);
#ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_WHITE);
#endif
- rb->lcd_putsxy(0, LCD_HEIGHT-font_h, str_buffer);
+ rb->lcd_putsxyf(0, LCD_HEIGHT-font_h, "star:%d speed:%d",
+ starfield.nb_stars, starfield.z_move);
}
rb->lcd_update();