1
0
Fork 0
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:
Jens Arnold 2006-06-21 18:41:57 +00:00
parent 75117cc993
commit c129f21586

View file

@ -222,10 +222,12 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
STATUSBAR_PLUG_X_POS,
STATUSBAR_Y_POS, STATUSBAR_PLUG_WIDTH,
STATUSBAR_HEIGHT);
else
#endif /* HAVE_USB_POWER */
/* draw power plug if charging */
#ifdef CONFIG_CHARGING
#ifdef HAVE_USB_POWER
else
#endif
/* draw power plug if charging */
if (bar->info.inserted)
display->mono_bitmap(bitmap_icons_7x8[Icon_Plug],
STATUSBAR_PLUG_X_POS,
@ -234,8 +236,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
#endif
bar->redraw_volume = gui_statusbar_icon_volume(bar, bar->info.volume);
gui_statusbar_icon_play_state(display, current_playmode() +
Icon_Play);
gui_statusbar_icon_play_state(display, current_playmode() + Icon_Play);
switch (bar->info.repeat) {
#if (AB_REPEAT_ENABLE == 1)