summaryrefslogtreecommitdiff
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;
377 377
378int plugin_main(void) 378int plugin_main(void)
379{ 379{
380 char str_buffer[40];
381 int button, avg_peak, t_disp=0; 380 int button, avg_peak, t_disp=0;
382 int font_h, font_w; 381 int font_h, font_w;
383 bool pulse=true; 382 bool pulse=true;
@@ -449,14 +448,11 @@ int plugin_main(void)
449 if (t_disp > 0) 448 if (t_disp > 0)
450 { 449 {
451 --t_disp; 450 --t_disp;
452 rb->snprintf(str_buffer, sizeof(str_buffer),
453 "star:%d speed:%d",
454 starfield.nb_stars,
455 starfield.z_move);
456#ifdef HAVE_LCD_COLOR 451#ifdef HAVE_LCD_COLOR
457 rb->lcd_set_foreground(LCD_WHITE); 452 rb->lcd_set_foreground(LCD_WHITE);
458#endif 453#endif
459 rb->lcd_putsxy(0, LCD_HEIGHT-font_h, str_buffer); 454 rb->lcd_putsxyf(0, LCD_HEIGHT-font_h, "star:%d speed:%d",
455 starfield.nb_stars, starfield.z_move);
460 } 456 }
461 rb->lcd_update(); 457 rb->lcd_update();
462 458