From 7e1a9ebee642d067e600d6c6781ba470700a5d28 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 27 Jun 2015 19:24:46 +0200 Subject: [PATCH] Move shader preset parameters up front --- menu/cbs/menu_cbs_get_value.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/menu/cbs/menu_cbs_get_value.c b/menu/cbs/menu_cbs_get_value.c index 4362b4ff70..9d5a3c565c 100644 --- a/menu/cbs/menu_cbs_get_value.c +++ b/menu/cbs/menu_cbs_get_value.c @@ -981,10 +981,6 @@ static int menu_cbs_init_bind_get_string_representation_compare_type( && type <= MENU_SETTINGS_LIBRETRO_PERF_COUNTERS_END) cbs->action_get_value = menu_action_setting_disp_set_label_libretro_perf_counters; - else if (type >= MENU_SETTINGS_SHADER_PRESET_PARAMETER_0 - && type <= MENU_SETTINGS_SHADER_PRESET_PARAMETER_LAST) - cbs->action_get_value = - menu_action_setting_disp_set_label_shader_preset_parameter; else { switch (type) @@ -1101,6 +1097,13 @@ int menu_cbs_init_bind_get_string_representation(menu_file_list_cbs_t *cbs, menu_action_setting_disp_set_label_shader_parameter; return 0; } + else if (type >= MENU_SETTINGS_SHADER_PRESET_PARAMETER_0 + && type <= MENU_SETTINGS_SHADER_PRESET_PARAMETER_LAST) + { + cbs->action_get_value = + menu_action_setting_disp_set_label_shader_preset_parameter; + return 0; + } if (menu_cbs_init_bind_get_string_representation_compare_label(cbs, label_hash) == 0) return 0;