summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-07-23 23:01:20 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-07-23 23:01:20 +0000
commitb1403ee024f81ced657261441571ee5e8bab71ce (patch)
tree3a7e1651d37bd35e801a331416654760cb61a075 /apps/recorder
parent15d04fdb00e7f94aef49cf9a70e73c5a46e21536 (diff)
downloadrockbox-b1403ee024f81ced657261441571ee5e8bab71ce.tar.gz
rockbox-b1403ee024f81ced657261441571ee5e8bab71ce.zip
New way of defining menus and options allows to declare them static const, which saves the code to runtime-assemble them. Rockbox just got 6 KB smaller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4931 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/radio.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 00223a070e..ee57e8927c 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -641,7 +641,7 @@ static bool radio_add_preset(void)
strcpy(presets[num_presets].name, buf);
presets[num_presets].frequency = curr_freq;
menu_insert(preset_menu, -1,
- presets[num_presets].name, 0, 0);
+ presets[num_presets].name, 0);
/* We must still rebuild the menu table, since the
item name pointers must be updated */
rebuild_preset_menu();
@@ -832,12 +832,11 @@ bool radio_menu(void)
m = menu_init(items, 0, NULL, NULL, NULL, NULL);
create_monomode_menu();
- menu_insert(m, -1, monomode_menu_string, LANG_FM_MONO_MODE,
- toggle_mono_mode);
- menu_insert(m, -1, STR(LANG_SOUND_SETTINGS), sound_menu);
+ menu_insert(m, -1, monomode_menu_string, toggle_mono_mode);
+ menu_insert(m, -1, ID2P(LANG_SOUND_SETTINGS), sound_menu);
#ifndef SIMULATOR
- menu_insert(m, -1, STR(LANG_RECORDING_SETTINGS), fm_recording_settings);
+ menu_insert(m, -1, ID2P(LANG_RECORDING_SETTINGS), fm_recording_settings);
#endif
result = menu_run(m);