diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 21:46:45 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 21:46:45 +0000 |
commit | ab9fd1840b8025336081bd72fb9dbaea7b9909dd (patch) | |
tree | 4c410bffcf1a9de2ce55a59bef45e3ecfa183a62 /apps/plugins/zxbox/zxvid_2bpp.c | |
parent | 8418a2c94a97da1d6f42f21dc348aadd1e177d77 (diff) | |
download | rockbox-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/zxvid_2bpp.c')
-rw-r--r-- | apps/plugins/zxbox/zxvid_2bpp.c | 5 |
1 files changed, 1 insertions, 4 deletions
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) | |||
41 | } | 41 | } |
42 | void update_screen(void) | 42 | void update_screen(void) |
43 | { | 43 | { |
44 | char str[80]; | ||
45 | |||
46 | fb_data *frameb; | 44 | fb_data *frameb; |
47 | int y=0; | 45 | int y=0; |
48 | int x=0; | 46 | int x=0; |
@@ -106,8 +104,7 @@ void update_screen(void) | |||
106 | int TPF = HZ/50;/* ticks per frame */ | 104 | int TPF = HZ/50;/* ticks per frame */ |
107 | if ((*rb->current_tick-start_time) > TPF ) | 105 | if ((*rb->current_tick-start_time) > TPF ) |
108 | percent = 100*video_frames/((*rb->current_tick-start_time)/TPF); | 106 | percent = 100*video_frames/((*rb->current_tick-start_time)/TPF); |
109 | rb->snprintf(str,sizeof(str),"%d %%",percent); | 107 | rb->lcd_putsxyf(0,0,"%d %%",percent); |
110 | rb->lcd_putsxy(0,0,str); | ||
111 | } | 108 | } |
112 | 109 | ||
113 | 110 | ||