forked from len0rd/rockbox
Ondio, iPods (except video): Fix disappearing volume icon when plugging USB power.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10142 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
75117cc993
commit
c129f21586
1 changed files with 5 additions and 4 deletions
|
|
@ -222,10 +222,12 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
|
||||||
STATUSBAR_PLUG_X_POS,
|
STATUSBAR_PLUG_X_POS,
|
||||||
STATUSBAR_Y_POS, STATUSBAR_PLUG_WIDTH,
|
STATUSBAR_Y_POS, STATUSBAR_PLUG_WIDTH,
|
||||||
STATUSBAR_HEIGHT);
|
STATUSBAR_HEIGHT);
|
||||||
else
|
|
||||||
#endif /* HAVE_USB_POWER */
|
#endif /* HAVE_USB_POWER */
|
||||||
/* draw power plug if charging */
|
|
||||||
#ifdef CONFIG_CHARGING
|
#ifdef CONFIG_CHARGING
|
||||||
|
#ifdef HAVE_USB_POWER
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
/* draw power plug if charging */
|
||||||
if (bar->info.inserted)
|
if (bar->info.inserted)
|
||||||
display->mono_bitmap(bitmap_icons_7x8[Icon_Plug],
|
display->mono_bitmap(bitmap_icons_7x8[Icon_Plug],
|
||||||
STATUSBAR_PLUG_X_POS,
|
STATUSBAR_PLUG_X_POS,
|
||||||
|
|
@ -234,8 +236,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bar->redraw_volume = gui_statusbar_icon_volume(bar, bar->info.volume);
|
bar->redraw_volume = gui_statusbar_icon_volume(bar, bar->info.volume);
|
||||||
gui_statusbar_icon_play_state(display, current_playmode() +
|
gui_statusbar_icon_play_state(display, current_playmode() + Icon_Play);
|
||||||
Icon_Play);
|
|
||||||
|
|
||||||
switch (bar->info.repeat) {
|
switch (bar->info.repeat) {
|
||||||
#if (AB_REPEAT_ENABLE == 1)
|
#if (AB_REPEAT_ENABLE == 1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue