diff options
Diffstat (limited to 'apps/plugins/iriverify.c')
-rw-r--r-- | apps/plugins/iriverify.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/plugins/iriverify.c b/apps/plugins/iriverify.c index 135cee36bd..b578cf7e0c 100644 --- a/apps/plugins/iriverify.c +++ b/apps/plugins/iriverify.c | |||
@@ -134,7 +134,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
134 | { | 134 | { |
135 | char *buf; | 135 | char *buf; |
136 | int rc; | 136 | int rc; |
137 | 137 | int i; | |
138 | filename = (char *)parameter; | 138 | filename = (char *)parameter; |
139 | 139 | ||
140 | rb = api; | 140 | rb = api; |
@@ -143,31 +143,31 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
143 | 143 | ||
144 | stringbuffer = buf; | 144 | stringbuffer = buf; |
145 | 145 | ||
146 | rb->lcd_clear_display(); | 146 | FOR_NB_SCREENS(i) |
147 | rb->screens[i]->clear_display(); | ||
147 | rb->splash(0, "Converting..."); | 148 | rb->splash(0, "Converting..."); |
148 | 149 | ||
149 | rc = read_buffer(0); | 150 | rc = read_buffer(0); |
151 | FOR_NB_SCREENS(i) | ||
152 | rb->screens[i]->clear_display(); | ||
150 | if(rc == 0) { | 153 | if(rc == 0) { |
151 | rb->lcd_clear_display(); | ||
152 | rb->splash(0, "Writing..."); | 154 | rb->splash(0, "Writing..."); |
153 | rc = write_file(); | 155 | rc = write_file(); |
154 | 156 | ||
157 | FOR_NB_SCREENS(i) | ||
158 | rb->screens[i]->clear_display(); | ||
155 | if(rc < 0) { | 159 | if(rc < 0) { |
156 | rb->lcd_clear_display(); | ||
157 | rb->splash(HZ, "Can't write file: %d", rc); | 160 | rb->splash(HZ, "Can't write file: %d", rc); |
158 | } else { | 161 | } else { |
159 | rb->lcd_clear_display(); | ||
160 | rb->splash(HZ, "Done"); | 162 | rb->splash(HZ, "Done"); |
161 | } | 163 | } |
162 | } else { | 164 | } else { |
163 | if(rc < 0) { | 165 | if(rc < 0) { |
164 | rb->lcd_clear_display(); | ||
165 | rb->splash(HZ, "Can't read file: %d", rc); | 166 | rb->splash(HZ, "Can't read file: %d", rc); |
166 | } else { | 167 | } else { |
167 | rb->lcd_clear_display(); | ||
168 | rb->splash(HZ, "The file is too big"); | 168 | rb->splash(HZ, "The file is too big"); |
169 | } | 169 | } |
170 | } | 170 | } |
171 | 171 | ||
172 | return PLUGIN_OK; | 172 | return PLUGIN_OK; |
173 | } | 173 | } |