summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2011-01-07 20:21:37 +0000
committerAlexander Levin <al.le@rockbox.org>2011-01-07 20:21:37 +0000
commit41e5933877f9494c64007d2ee19e3d9eca744b49 (patch)
treedfa822937d24bd903eba20991ccca5d80dd17ec6
parent42ad21ab531ef3976b6485ec52ea734cab984166 (diff)
downloadrockbox-41e5933877f9494c64007d2ee19e3d9eca744b49.tar.gz
rockbox-41e5933877f9494c64007d2ee19e3d9eca744b49.zip
pitch_detector: the menu function already returns a bool, so use the return value directly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28994 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/pitch_detector.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c
index ed3ff6413d..431ddfbcb4 100644
--- a/apps/plugins/pitch_detector.c
+++ b/apps/plugins/pitch_detector.c
@@ -420,6 +420,7 @@ static void set_min_freq(int new_freq)
420 settings.sample_size = (settings.sample_size + 3) & ~3; 420 settings.sample_size = (settings.sample_size + 3) & ~3;
421} 421}
422 422
423/* Displays the menu. Returns true iff the user selects 'quit'. */
423static bool main_menu(void) 424static bool main_menu(void)
424{ 425{
425 int selection = 0; 426 int selection = 0;
@@ -972,7 +973,7 @@ static void record_and_get_pitch(void)
972 973
973 case PLA_CANCEL: 974 case PLA_CANCEL:
974 rb->pcm_stop_recording(); 975 rb->pcm_stop_recording();
975 quit = main_menu() != 0; 976 quit = main_menu();
976 if(!quit) 977 if(!quit)
977 { 978 {
978 redraw = true; 979 redraw = true;