diff options
| author | Alexander Levin <al.le@rockbox.org> | 2011-01-07 20:21:37 +0000 |
|---|---|---|
| committer | Alexander Levin <al.le@rockbox.org> | 2011-01-07 20:21:37 +0000 |
| commit | 41e5933877f9494c64007d2ee19e3d9eca744b49 (patch) | |
| tree | dfa822937d24bd903eba20991ccca5d80dd17ec6 /apps/plugins | |
| parent | 42ad21ab531ef3976b6485ec52ea734cab984166 (diff) | |
| download | rockbox-41e5933877f9494c64007d2ee19e3d9eca744b49.zip rockbox-41e5933877f9494c64007d2ee19e3d9eca744b49.tar.gz rockbox-41e5933877f9494c64007d2ee19e3d9eca744b49.tar.bz2 rockbox-41e5933877f9494c64007d2ee19e3d9eca744b49.tar.xz | |
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
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/pitch_detector.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c index ed3ff64..431ddfb 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) settings.sample_size = (settings.sample_size + 3) & ~3; } +/* Displays the menu. Returns true iff the user selects 'quit'. */ static bool main_menu(void) { int selection = 0; @@ -972,7 +973,7 @@ static void record_and_get_pitch(void) case PLA_CANCEL: rb->pcm_stop_recording(); - quit = main_menu() != 0; + quit = main_menu(); if(!quit) { redraw = true; |