summaryrefslogtreecommitdiffstats
path: root/apps/plugins/zxbox
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-28 21:46:45 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-28 21:46:45 +0000
commitab9fd1840b8025336081bd72fb9dbaea7b9909dd (patch)
tree4c410bffcf1a9de2ce55a59bef45e3ecfa183a62 /apps/plugins/zxbox
parent8418a2c94a97da1d6f42f21dc348aadd1e177d77 (diff)
downloadrockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.tar.gz
rockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.zip
plugins: use lcd_putsf/lcd_putsxyf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/zxbox')
-rw-r--r--apps/plugins/zxbox/zxvid_16bpp.c6
-rw-r--r--apps/plugins/zxbox/zxvid_2bpp.c5
2 files changed, 2 insertions, 9 deletions
diff --git a/apps/plugins/zxbox/zxvid_16bpp.c b/apps/plugins/zxbox/zxvid_16bpp.c
index 4a05c69f97..f213afe307 100644
--- a/apps/plugins/zxbox/zxvid_16bpp.c
+++ b/apps/plugins/zxbox/zxvid_16bpp.c
@@ -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();
}
-
-
diff --git a/apps/plugins/zxbox/zxvid_2bpp.c b/apps/plugins/zxbox/zxvid_2bpp.c
index 0a4519e0ac..9f98ab4cfb 100644
--- a/apps/plugins/zxbox/zxvid_2bpp.c
+++ b/apps/plugins/zxbox/zxvid_2bpp.c
@@ -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);
}