mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 16:12:28 -05:00
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
|
|
@ -49,7 +49,6 @@ void init_spect_scr(void)
|
|||
|
||||
void update_screen(void)
|
||||
{
|
||||
char str[80];
|
||||
fb_data *frameb;
|
||||
|
||||
int y=0;
|
||||
|
|
@ -88,10 +87,7 @@ void update_screen(void)
|
|||
int TPF = HZ/50;/* ticks per frame */
|
||||
if ((*rb->current_tick-start_time) > TPF )
|
||||
percent = 100*video_frames/((*rb->current_tick-start_time)/TPF);
|
||||
rb->snprintf(str,sizeof(str),"%d %%",percent);
|
||||
rb->lcd_putsxy(0,0,str);
|
||||
rb->lcd_putsxyf(0,0,"%d %%",percent);
|
||||
}
|
||||
rb -> lcd_update();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -41,8 +41,6 @@ void init_spect_scr(void)
|
|||
}
|
||||
void update_screen(void)
|
||||
{
|
||||
char str[80];
|
||||
|
||||
fb_data *frameb;
|
||||
int y=0;
|
||||
int x=0;
|
||||
|
|
@ -106,8 +104,7 @@ void update_screen(void)
|
|||
int TPF = HZ/50;/* ticks per frame */
|
||||
if ((*rb->current_tick-start_time) > TPF )
|
||||
percent = 100*video_frames/((*rb->current_tick-start_time)/TPF);
|
||||
rb->snprintf(str,sizeof(str),"%d %%",percent);
|
||||
rb->lcd_putsxy(0,0,str);
|
||||
rb->lcd_putsxyf(0,0,"%d %%",percent);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue