summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-02-07 04:24:21 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-02-07 04:24:21 +0000
commiteed62f1657f4f2b08571f0bd2b1827f3a71dac87 (patch)
tree1023d721c59e29150f445bbba25a0e11bed4c1ae /apps/recorder/recording.c
parentff3bb3aa18e71860d644a50632088ec282968de4 (diff)
downloadrockbox-eed62f1657f4f2b08571f0bd2b1827f3a71dac87.tar.gz
rockbox-eed62f1657f4f2b08571f0bd2b1827f3a71dac87.zip
Change the radio screen and recording screen to use the global_status structure for state. I guess global_status had been added already and I missed it. :D
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12222 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r--apps/recorder/recording.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index cb934877a9..a0a929f3a6 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -70,13 +70,6 @@
70#include "radio.h" 70#include "radio.h"
71#ifdef HAVE_RECORDING 71#ifdef HAVE_RECORDING
72 72
73static bool in_screen = false;
74
75bool in_recording_screen(void)
76{
77 return in_screen;
78}
79
80#define PM_HEIGHT ((LCD_HEIGHT >= 72) ? 2 : 1) 73#define PM_HEIGHT ((LCD_HEIGHT >= 72) ? 2 : 1)
81 74
82#if CONFIG_KEYPAD == RECORDER_PAD 75#if CONFIG_KEYPAD == RECORDER_PAD
@@ -801,7 +794,7 @@ bool recording_screen(bool no_source)
801 794
802 struct audio_recording_options rec_options; 795 struct audio_recording_options rec_options;
803 796
804 in_screen = true; 797 global_status.in_recording_screen = true;
805 cursor = 0; 798 cursor = 0;
806#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) 799#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR)
807 ata_set_led_enabled(false); 800 ata_set_led_enabled(false);
@@ -1771,7 +1764,7 @@ bool recording_screen(bool no_source)
1771 peak_meter_trigger(false); 1764 peak_meter_trigger(false);
1772 peak_meter_set_trigger_listener(NULL); 1765 peak_meter_set_trigger_listener(NULL);
1773 1766
1774 in_screen = false; 1767 global_status.in_recording_screen = false;
1775 sound_settings_apply(); 1768 sound_settings_apply();
1776 1769
1777 FOR_NB_SCREENS(i) 1770 FOR_NB_SCREENS(i)