diff options
Diffstat (limited to 'apps/recorder/icons.c')
-rw-r--r-- | apps/recorder/icons.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c index fc7a18ef31..b38a252f96 100644 --- a/apps/recorder/icons.c +++ b/apps/recorder/icons.c | |||
@@ -209,6 +209,7 @@ void statusbar_icon_volume(int percent) | |||
209 | { | 209 | { |
210 | int i,j; | 210 | int i,j; |
211 | int volume; | 211 | int volume; |
212 | int vol; | ||
212 | int step=0; | 213 | int step=0; |
213 | char buffer[4]; | 214 | char buffer[4]; |
214 | unsigned int width, height; | 215 | unsigned int width, height; |
@@ -235,9 +236,9 @@ void statusbar_icon_volume(int percent) | |||
235 | } | 236 | } |
236 | 237 | ||
237 | /* display volume level numerical? */ | 238 | /* display volume level numerical? */ |
238 | if (global_settings.volume_type || | 239 | if (global_settings.volume_type || |
239 | TIME_BEFORE(current_tick,switch_tick)) | 240 | TIME_BEFORE(current_tick,switch_tick)) |
240 | { | 241 | { |
241 | snprintf(buffer, sizeof(buffer), "%2d", percent); | 242 | snprintf(buffer, sizeof(buffer), "%2d", percent); |
242 | lcd_setfont(FONT_SYSFIXED); | 243 | lcd_setfont(FONT_SYSFIXED); |
243 | lcd_getstringsize(buffer, &width, &height); | 244 | lcd_getstringsize(buffer, &width, &height); |
@@ -247,8 +248,8 @@ void statusbar_icon_volume(int percent) | |||
247 | lcd_setfont(FONT_UI); | 248 | lcd_setfont(FONT_UI); |
248 | } else { | 249 | } else { |
249 | /* display volume bar */ | 250 | /* display volume bar */ |
250 | volume = volume * 14 / 100; | 251 | vol = volume * 14 / 100; |
251 | for(i=0; i < volume; i++) { | 252 | for(i=0; i < vol; i++) { |
252 | if(i%2 == 0) | 253 | if(i%2 == 0) |
253 | step++; | 254 | step++; |
254 | for(j=1; j <= step; j++) | 255 | for(j=1; j <= step; j++) |