From be37431fe48ef5538390e71006bf76d16231642f Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sun, 27 Jun 2004 09:44:56 +0000 Subject: The first fix for bug #898145 was incorrect git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4808 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/icons.c | 11 ++++++----- 1 file 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++) -- cgit v1.2.3