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