summaryrefslogtreecommitdiff
path: root/apps/recorder/radio.c
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/radio.c
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/radio.c')
-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)
641 strcpy(presets[num_presets].name, buf); 641 strcpy(presets[num_presets].name, buf);
642 presets[num_presets].frequency = curr_freq; 642 presets[num_presets].frequency = curr_freq;
643 menu_insert(preset_menu, -1, 643 menu_insert(preset_menu, -1,
644 presets[num_presets].name, 0, 0); 644 presets[num_presets].name, 0);
645 /* We must still rebuild the menu table, since the 645 /* We must still rebuild the menu table, since the
646 item name pointers must be updated */ 646 item name pointers must be updated */
647 rebuild_preset_menu(); 647 rebuild_preset_menu();
@@ -832,12 +832,11 @@ bool radio_menu(void)
832 m = menu_init(items, 0, NULL, NULL, NULL, NULL); 832 m = menu_init(items, 0, NULL, NULL, NULL, NULL);
833 833
834 create_monomode_menu(); 834 create_monomode_menu();
835 menu_insert(m, -1, monomode_menu_string, LANG_FM_MONO_MODE, 835 menu_insert(m, -1, monomode_menu_string, toggle_mono_mode);
836 toggle_mono_mode); 836 menu_insert(m, -1, ID2P(LANG_SOUND_SETTINGS), sound_menu);
837 menu_insert(m, -1, STR(LANG_SOUND_SETTINGS), sound_menu);
838 837
839#ifndef SIMULATOR 838#ifndef SIMULATOR
840 menu_insert(m, -1, STR(LANG_RECORDING_SETTINGS), fm_recording_settings); 839 menu_insert(m, -1, ID2P(LANG_RECORDING_SETTINGS), fm_recording_settings);
841#endif 840#endif
842 841
843 result = menu_run(m); 842 result = menu_run(m);