diff options
Diffstat (limited to 'apps/plugins/zxbox')
-rw-r--r-- | apps/plugins/zxbox/zxvid_16bpp.c | 6 | ||||
-rw-r--r-- | apps/plugins/zxbox/zxvid_2bpp.c | 5 |
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) | |||
49 | 49 | ||
50 | void update_screen(void) | 50 | void update_screen(void) |
51 | { | 51 | { |
52 | char str[80]; | ||
53 | fb_data *frameb; | 52 | fb_data *frameb; |
54 | 53 | ||
55 | int y=0; | 54 | int y=0; |
@@ -88,10 +87,7 @@ void update_screen(void) | |||
88 | int TPF = HZ/50;/* ticks per frame */ | 87 | int TPF = HZ/50;/* ticks per frame */ |
89 | if ((*rb->current_tick-start_time) > TPF ) | 88 | if ((*rb->current_tick-start_time) > TPF ) |
90 | percent = 100*video_frames/((*rb->current_tick-start_time)/TPF); | 89 | percent = 100*video_frames/((*rb->current_tick-start_time)/TPF); |
91 | rb->snprintf(str,sizeof(str),"%d %%",percent); | 90 | rb->lcd_putsxyf(0,0,"%d %%",percent); |
92 | rb->lcd_putsxy(0,0,str); | ||
93 | } | 91 | } |
94 | rb -> lcd_update(); | 92 | rb -> lcd_update(); |
95 | } | 93 | } |
96 | |||
97 | |||
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 | ||