diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-06-21 18:41:57 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-06-21 18:41:57 +0000 |
commit | c129f215864cfb07b3a7563053fd680e8e31ff2d (patch) | |
tree | 425094eb36353013639c1acf723250b370bd7f1e /apps/gui/statusbar.c | |
parent | 75117cc993442303009f64b7c1951cfa7dbe1887 (diff) | |
download | rockbox-c129f215864cfb07b3a7563053fd680e8e31ff2d.tar.gz rockbox-c129f215864cfb07b3a7563053fd680e8e31ff2d.zip |
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
Diffstat (limited to 'apps/gui/statusbar.c')
-rw-r--r-- | apps/gui/statusbar.c | 9 |
1 files 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) | |||
222 | STATUSBAR_PLUG_X_POS, | 222 | STATUSBAR_PLUG_X_POS, |
223 | STATUSBAR_Y_POS, STATUSBAR_PLUG_WIDTH, | 223 | STATUSBAR_Y_POS, STATUSBAR_PLUG_WIDTH, |
224 | STATUSBAR_HEIGHT); | 224 | STATUSBAR_HEIGHT); |
225 | else | ||
226 | #endif /* HAVE_USB_POWER */ | 225 | #endif /* HAVE_USB_POWER */ |
227 | /* draw power plug if charging */ | ||
228 | #ifdef CONFIG_CHARGING | 226 | #ifdef CONFIG_CHARGING |
227 | #ifdef HAVE_USB_POWER | ||
228 | else | ||
229 | #endif | ||
230 | /* draw power plug if charging */ | ||
229 | if (bar->info.inserted) | 231 | if (bar->info.inserted) |
230 | display->mono_bitmap(bitmap_icons_7x8[Icon_Plug], | 232 | display->mono_bitmap(bitmap_icons_7x8[Icon_Plug], |
231 | STATUSBAR_PLUG_X_POS, | 233 | STATUSBAR_PLUG_X_POS, |
@@ -234,8 +236,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw) | |||
234 | #endif | 236 | #endif |
235 | 237 | ||
236 | bar->redraw_volume = gui_statusbar_icon_volume(bar, bar->info.volume); | 238 | bar->redraw_volume = gui_statusbar_icon_volume(bar, bar->info.volume); |
237 | gui_statusbar_icon_play_state(display, current_playmode() + | 239 | gui_statusbar_icon_play_state(display, current_playmode() + Icon_Play); |
238 | Icon_Play); | ||
239 | 240 | ||
240 | switch (bar->info.repeat) { | 241 | switch (bar->info.repeat) { |
241 | #if (AB_REPEAT_ENABLE == 1) | 242 | #if (AB_REPEAT_ENABLE == 1) |