diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-02-07 02:48:19 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-02-07 02:48:19 +0000 |
commit | ff3bb3aa18e71860d644a50632088ec282968de4 (patch) | |
tree | 8cd33aa24b5db5684cceeffd4c3cbca2dd7d54ea /apps/recorder/recording.c | |
parent | 70ebc8feb156613d586b3330d309ec72d1e30c2d (diff) |
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/recorder/recording.c')
-rw-r--r-- | apps/recorder/recording.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index a4662ab42e..cb934877a9 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -70,6 +70,13 @@ #include "radio.h" #ifdef HAVE_RECORDING +static bool in_screen = false; + +bool in_recording_screen(void) +{ + return in_screen; +} + #define PM_HEIGHT ((LCD_HEIGHT >= 72) ? 2 : 1) #if CONFIG_KEYPAD == RECORDER_PAD @@ -794,7 +801,7 @@ bool recording_screen(bool no_source) struct audio_recording_options rec_options; - global_settings.recscreen_on = true; + in_screen = true; cursor = 0; #if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) ata_set_led_enabled(false); @@ -1764,7 +1771,7 @@ bool recording_screen(bool no_source) peak_meter_trigger(false); peak_meter_set_trigger_listener(NULL); - global_settings.recscreen_on = false; + in_screen = false; sound_settings_apply(); FOR_NB_SCREENS(i) |