diff options
Diffstat (limited to 'apps/menus/eq_menu.c')
-rw-r--r-- | apps/menus/eq_menu.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c index b9da3449a6..7cbf7b5d90 100644 --- a/apps/menus/eq_menu.c +++ b/apps/menus/eq_menu.c | |||
@@ -563,7 +563,7 @@ static void draw_eq_sliders(struct screen * screen, int x, int y, | |||
563 | } | 563 | } |
564 | 564 | ||
565 | /* Provides a graphical means of editing the EQ settings */ | 565 | /* Provides a graphical means of editing the EQ settings */ |
566 | bool eq_menu_graphical(void) | 566 | int eq_menu_graphical(void) |
567 | { | 567 | { |
568 | bool exit_request = false; | 568 | bool exit_request = false; |
569 | bool result = true; | 569 | bool result = true; |
@@ -753,10 +753,10 @@ bool eq_menu_graphical(void) | |||
753 | screens[i].set_viewport(NULL); | 753 | screens[i].set_viewport(NULL); |
754 | viewportmanager_theme_undo(i, false); | 754 | viewportmanager_theme_undo(i, false); |
755 | } | 755 | } |
756 | return result; | 756 | return (result) ? 1 : 0; |
757 | } | 757 | } |
758 | 758 | ||
759 | static bool eq_save_preset(void) | 759 | static int eq_save_preset(void) |
760 | { | 760 | { |
761 | /* make sure that the eq is enabled for setting saving */ | 761 | /* make sure that the eq is enabled for setting saving */ |
762 | bool enabled = global_settings.eq_enabled; | 762 | bool enabled = global_settings.eq_enabled; |
@@ -766,16 +766,16 @@ static bool eq_save_preset(void) | |||
766 | 766 | ||
767 | global_settings.eq_enabled = enabled; | 767 | global_settings.eq_enabled = enabled; |
768 | 768 | ||
769 | return result; | 769 | return (result) ? 1 : 0; |
770 | } | 770 | } |
771 | /* Allows browsing of preset files */ | 771 | /* Allows browsing of preset files */ |
772 | static struct browse_folder_info eqs = { EQS_DIR, SHOW_CFG }; | 772 | static struct browse_folder_info eqs = { EQS_DIR, SHOW_CFG }; |
773 | 773 | ||
774 | MENUITEM_FUNCTION(eq_graphical, 0, ID2P(LANG_EQUALIZER_GRAPHICAL), | 774 | MENUITEM_FUNCTION(eq_graphical, 0, ID2P(LANG_EQUALIZER_GRAPHICAL), |
775 | (int(*)(void))eq_menu_graphical, NULL, lowlatency_callback, | 775 | eq_menu_graphical, NULL, lowlatency_callback, |
776 | Icon_EQ); | 776 | Icon_EQ); |
777 | MENUITEM_FUNCTION(eq_save, 0, ID2P(LANG_EQUALIZER_SAVE), | 777 | MENUITEM_FUNCTION(eq_save, 0, ID2P(LANG_EQUALIZER_SAVE), |
778 | (int(*)(void))eq_save_preset, NULL, NULL, Icon_NOICON); | 778 | eq_save_preset, NULL, NULL, Icon_NOICON); |
779 | MENUITEM_FUNCTION(eq_browse, MENU_FUNC_USEPARAM, ID2P(LANG_EQUALIZER_BROWSE), | 779 | MENUITEM_FUNCTION(eq_browse, MENU_FUNC_USEPARAM, ID2P(LANG_EQUALIZER_BROWSE), |
780 | browse_folder, (void*)&eqs, lowlatency_callback, | 780 | browse_folder, (void*)&eqs, lowlatency_callback, |
781 | Icon_NOICON); | 781 | Icon_NOICON); |