summaryrefslogtreecommitdiffstats
path: root/apps
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 /apps
parentb8a50eb52e9d39a34a936ff51698889f2c697f66 (diff)
downloadrockbox-be37431fe48ef5538390e71006bf76d16231642f.tar.gz
rockbox-be37431fe48ef5538390e71006bf76d16231642f.tar.bz2
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
Diffstat (limited to 'apps')
-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)
{
int i,j;
int volume;
+ int vol;
int step=0;
char buffer[4];
unsigned int width, height;
@@ -235,9 +236,9 @@ void statusbar_icon_volume(int percent)
}
/* display volume level numerical? */
- if (global_settings.volume_type ||
- TIME_BEFORE(current_tick,switch_tick))
- {
+ if (global_settings.volume_type ||
+ TIME_BEFORE(current_tick,switch_tick))
+ {
snprintf(buffer, sizeof(buffer), "%2d", percent);
lcd_setfont(FONT_SYSFIXED);
lcd_getstringsize(buffer, &width, &height);
@@ -247,8 +248,8 @@ void statusbar_icon_volume(int percent)
lcd_setfont(FONT_UI);
} else {
/* display volume bar */
- volume = volume * 14 / 100;
- for(i=0; i < volume; i++) {
+ vol = volume * 14 / 100;
+ for(i=0; i < vol; i++) {
if(i%2 == 0)
step++;
for(j=1; j <= step; j++)