From 9bf86f75fac571e79e9fd85632704e43fb026ae1 Mon Sep 17 00:00:00 2001 From: Markus Braun Date: Fri, 9 Aug 2002 11:57:31 +0000 Subject: Volume is shown numerical after a change git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1642 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/icons.c | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'apps/recorder/icons.c') diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c index 89d7186224..78d07dbd1a 100644 --- a/apps/recorder/icons.c +++ b/apps/recorder/icons.c @@ -17,6 +17,7 @@ * ****************************************************************************/ #include +#include "kernel.h" #include "icons.h" #ifndef SIMULATOR @@ -208,6 +209,9 @@ void statusbar_icon_volume(int percent) int i,j; int volume; int step=0; + char buffer[4]; + static long switch_tick; + static int last_volume; volume=percent; if(volume<0) @@ -218,12 +222,22 @@ void statusbar_icon_volume(int percent) if(volume==0) lcd_bitmap(bitmap_icon_7x8[Icon_Mute], ICON_VOLUME_X_POS+ICON_VOLUME_WIDTH/2-4, STATUSBAR_Y_POS, 7, STATUSBAR_HEIGHT, false); else { - volume=volume*14/100; - for(i=0;i