diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-28 14:10:09 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-28 14:10:09 +0000 |
commit | d69e38331de5de5141f418bda0d456f7adf787db (patch) | |
tree | fdf264b4286ed611e3b25877baa34abafb6bc158 /apps/recorder | |
parent | bc7803bc00e1292f7737cded3a58907b03a4907f (diff) | |
download | rockbox-d69e38331de5de5141f418bda0d456f7adf787db.tar.gz rockbox-d69e38331de5de5141f418bda0d456f7adf787db.zip |
The volume icon is now drawn in the original state the very first time
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4812 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/icons.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c index b38a252f96..6e0ff73fc8 100644 --- a/apps/recorder/icons.c +++ b/apps/recorder/icons.c | |||
@@ -217,7 +217,7 @@ void statusbar_icon_volume(int percent) | |||
217 | unsigned char *font; | 217 | unsigned char *font; |
218 | #endif | 218 | #endif |
219 | static long switch_tick; | 219 | static long switch_tick; |
220 | static int last_volume; | 220 | static int last_volume = -1; /* -1 means "first update ever" */ |
221 | 221 | ||
222 | volume = percent; | 222 | volume = percent; |
223 | if (volume < 0) | 223 | if (volume < 0) |
@@ -231,7 +231,7 @@ void statusbar_icon_volume(int percent) | |||
231 | STATUSBAR_Y_POS, 7, STATUSBAR_HEIGHT, false); | 231 | STATUSBAR_Y_POS, 7, STATUSBAR_HEIGHT, false); |
232 | } | 232 | } |
233 | else { | 233 | else { |
234 | if (last_volume != volume) { | 234 | if (last_volume != volume && last_volume >= 0) { |
235 | switch_tick = current_tick + HZ; | 235 | switch_tick = current_tick + HZ; |
236 | } | 236 | } |
237 | 237 | ||