From c129f215864cfb07b3a7563053fd680e8e31ff2d Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 21 Jun 2006 18:41:57 +0000 Subject: 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 --- apps/gui/statusbar.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index b5d8b7c9ed..cceb54ede6 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c @@ -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) -- cgit v1.2.3