summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-10-04 09:43:09 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-10-04 09:43:09 +0000
commit0b53443bad1d4b7f96d01c415bf82e484cae0a37 (patch)
tree3dbc44e0935f7851d5ccf5a4eda3a517b6c852a5 /apps/recorder
parenta2b5681ca5201c9da070e1fabc36dc7b0204c5d4 (diff)
downloadrockbox-0b53443bad1d4b7f96d01c415bf82e484cae0a37.tar.gz
rockbox-0b53443bad1d4b7f96d01c415bf82e484cae0a37.zip
Adapted the FM screen to the new button code, fixes bug #1039519
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5155 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/radio.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 3d03dc30c9..8afcefe261 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -380,7 +380,7 @@ bool radio_screen(void)
settings_save();
break;
- case BUTTON_F1:
+ case BUTTON_F1 | BUTTON_REL:
radio_menu();
curr_preset = find_preset(curr_freq);
lcd_clear_display();
@@ -391,7 +391,7 @@ bool radio_screen(void)
update_screen = true;
break;
- case BUTTON_F2:
+ case BUTTON_F2 | BUTTON_REL:
handle_radio_presets();
curr_preset = find_preset(curr_freq);
lcd_clear_display();
@@ -671,8 +671,8 @@ static int handle_radio_presets_menu_cb(int key, int m)
#if CONFIG_KEYPAD == RECORDER_PAD
switch(key)
{
- case BUTTON_F3:
- key = BUTTON_LEFT; /* Fake an exit */
+ case BUTTON_F3 | BUTTON_REL:
+ key = MENU_EXIT; /* Fake an exit */
break;
}
#endif
@@ -741,18 +741,18 @@ int handle_radio_presets_cb(int key, int m)
switch(key)
{
- case BUTTON_F1:
+ case BUTTON_F1 | BUTTON_REL:
radio_add_preset();
menu_draw(m);
key = BUTTON_NONE;
break;
- case BUTTON_F2:
+ case BUTTON_F2 | BUTTON_REL:
menu_draw(m);
- key = BUTTON_LEFT; /* Fake an exit */
+ key = MENU_EXIT; /* Fake an exit */
break;
- case BUTTON_F3:
+ case BUTTON_F3 | BUTTON_REL:
ret = handle_radio_presets_menu();
menu_draw(m);
if(ret)