summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-02-07 02:48:19 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-02-07 02:48:19 +0000
commitff3bb3aa18e71860d644a50632088ec282968de4 (patch)
tree8cd33aa24b5db5684cceeffd4c3cbca2dd7d54ea /apps/gui
parent70ebc8feb156613d586b3330d309ec72d1e30c2d (diff)
downloadrockbox-ff3bb3aa18e71860d644a50632088ec282968de4.zip
rockbox-ff3bb3aa18e71860d644a50632088ec282968de4.tar.gz
rockbox-ff3bb3aa18e71860d644a50632088ec282968de4.tar.bz2
rockbox-ff3bb3aa18e71860d644a50632088ec282968de4.tar.xz
Don't save the in-out state of the recording screen as a setting. Fixes the statusbar icons if settings were saved while recording screen was on. Humbly may I suggest a global_state structure to do all this state checking more efficiently\? Ignore me if that's being worked on by someone.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12221 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/statusbar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c
index 2f6dfaf..d3f4813 100644
--- a/apps/gui/statusbar.c
+++ b/apps/gui/statusbar.c
@@ -38,6 +38,7 @@
#include "statusbar.h"
#ifdef HAVE_RECORDING
#include "audio.h"
+#include "recording.h"
#endif
/* FIXME: should be removed from icon.h to avoid redefinition,
@@ -257,7 +258,8 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
#endif
#ifdef HAVE_RECORDING
/* turn off volume display in recording screen */
- if (!global_settings.recscreen_on)
+ bool recscreen_on = in_recording_screen();
+ if (!recscreen_on)
#endif
bar->redraw_volume = gui_statusbar_icon_volume(bar, bar->info.volume);
gui_statusbar_icon_play_state(display, current_playmode() + Icon_Play);
@@ -265,7 +267,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
#ifdef HAVE_RECORDING
/* If in recording screen, replace repeat mode, volume
and shuffle icons with recording info */
- if (global_settings.recscreen_on)
+ if (recscreen_on)
gui_statusbar_icon_recording_info(display);
else
#endif