summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-06-27 09:44:56 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-06-27 09:44:56 +0000
commitbe37431fe48ef5538390e71006bf76d16231642f (patch)
tree41fd13dea94f22197e779b8fce1f69462286d514
parentb8a50eb52e9d39a34a936ff51698889f2c697f66 (diff)
downloadrockbox-be37431fe48ef5538390e71006bf76d16231642f.tar.gz
rockbox-be37431fe48ef5538390e71006bf76d16231642f.zip
The first fix for bug #898145 was incorrect
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4808 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/icons.c11
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++)