forked from len0rd/rockbox
Remove unnecessary function call.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12471 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f67a95330c
commit
dbf772bae9
1 changed files with 3 additions and 3 deletions
|
|
@ -220,7 +220,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bar->info.volume = sound_val2phys(SOUND_VOLUME, global_settings.volume);
|
bar->info.volume = global_settings.volume;
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
bar->info.shuffle = global_settings.playlist_shuffle;
|
bar->info.shuffle = global_settings.playlist_shuffle;
|
||||||
#ifdef HAS_BUTTON_HOLD
|
#ifdef HAS_BUTTON_HOLD
|
||||||
|
|
@ -461,8 +461,8 @@ static bool gui_statusbar_icon_volume(struct gui_statusbar * bar, int volume)
|
||||||
bool needs_redraw = false;
|
bool needs_redraw = false;
|
||||||
int type = global_settings.volume_type;
|
int type = global_settings.volume_type;
|
||||||
struct screen * display=bar->display;
|
struct screen * display=bar->display;
|
||||||
int minvol = sound_min(SOUND_VOLUME);
|
const int minvol = sound_min(SOUND_VOLUME);
|
||||||
int maxvol = sound_max(SOUND_VOLUME);
|
const int maxvol = sound_max(SOUND_VOLUME);
|
||||||
|
|
||||||
if (volume < minvol)
|
if (volume < minvol)
|
||||||
volume = minvol;
|
volume = minvol;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue