forked from len0rd/rockbox
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
This commit is contained in:
parent
bc7803bc00
commit
d69e38331d
1 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@ void statusbar_icon_volume(int percent)
|
|||
unsigned char *font;
|
||||
#endif
|
||||
static long switch_tick;
|
||||
static int last_volume;
|
||||
static int last_volume = -1; /* -1 means "first update ever" */
|
||||
|
||||
volume = percent;
|
||||
if (volume < 0)
|
||||
|
@ -231,7 +231,7 @@ void statusbar_icon_volume(int percent)
|
|||
STATUSBAR_Y_POS, 7, STATUSBAR_HEIGHT, false);
|
||||
}
|
||||
else {
|
||||
if (last_volume != volume) {
|
||||
if (last_volume != volume && last_volume >= 0) {
|
||||
switch_tick = current_tick + HZ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue