From 0f17532c9ddb2282c385ce6ad501a2e5d94acbe5 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 8 Feb 2007 10:36:49 +0000 Subject: Revert the changes using global status for the screen states. It should wait for a more comprehensive plan to maximize benefit if any can be had. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12231 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/recording.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'apps/recorder/recording.c') diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index a0a929f3a6..eb6f9b20ca 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_status.in_recording_screen = 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_status.in_recording_screen = false; + in_screen = false; sound_settings_apply(); FOR_NB_SCREENS(i) -- cgit v1.2.3