From e1316cb7ba19f262efd13b8226a4b0cb0cb51c24 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 15 Jun 2016 23:43:24 +0200 Subject: [PATCH] Use menu_hash_to_str_enum --- gfx/video_driver.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 30e225888a..e9982ac518 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -1186,8 +1186,8 @@ void video_driver_menu_settings(void **list_data, void *list_info_data, #if defined(GEKKO) || defined(__CELLOS_LV2__) CONFIG_ACTION( list, list_info, - menu_hash_to_str(MENU_LABEL_SCREEN_RESOLUTION), - menu_hash_to_str(MENU_LABEL_VALUE_SCREEN_RESOLUTION), + menu_hash_to_str_enum(MENU_ENUM_LABEL_SCREEN_RESOLUTION), + menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_SCREEN_RESOLUTION), group_info, subgroup_info, parent_group); @@ -1197,11 +1197,11 @@ void video_driver_menu_settings(void **list_data, void *list_info_data, CONFIG_BOOL( list, list_info, &global->console.screen.pal60_enable, - menu_hash_to_str(MENU_LABEL_PAL60_ENABLE), - menu_hash_to_str(MENU_LABEL_VALUE_PAL60_ENABLE), + menu_hash_to_str_enum(MENU_ENUM_LABEL_PAL60_ENABLE), + menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_PAL60_ENABLE), false, - menu_hash_to_str(MENU_VALUE_OFF), - menu_hash_to_str(MENU_VALUE_ON), + menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_OFF), + menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_ON), group_info, subgroup_info, parent_group, @@ -1214,8 +1214,8 @@ void video_driver_menu_settings(void **list_data, void *list_info_data, CONFIG_UINT( list, list_info, &global->console.screen.gamma_correction, - menu_hash_to_str(MENU_LABEL_VIDEO_GAMMA), - menu_hash_to_str(MENU_LABEL_VALUE_VIDEO_GAMMA), + menu_hash_to_str_enum(MENU_ENUM_LABEL_VIDEO_GAMMA), + menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_VIDEO_GAMMA), 0, group_info, subgroup_info, @@ -1242,11 +1242,11 @@ void video_driver_menu_settings(void **list_data, void *list_info_data, CONFIG_BOOL( list, list_info, &global->console.softfilter_enable, - menu_hash_to_str(MENU_LABEL_VIDEO_SOFT_FILTER), - menu_hash_to_str(MENU_LABEL_VALUE_VIDEO_SOFT_FILTER), + menu_hash_to_str_enum(MENU_ENUM_LABEL_VIDEO_SOFT_FILTER), + menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_VIDEO_SOFT_FILTER), false, - menu_hash_to_str(MENU_VALUE_OFF), - menu_hash_to_str(MENU_VALUE_ON), + menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_OFF), + menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_ON), group_info, subgroup_info, parent_group, @@ -1263,8 +1263,8 @@ void video_driver_menu_settings(void **list_data, void *list_info_data, CONFIG_UINT( list, list_info, &settings->video.swap_interval, - menu_hash_to_str(MENU_LABEL_VIDEO_FILTER_FLICKER), - menu_hash_to_str(MENU_LABEL_VALUE_VIDEO_FILTER_FLICKER), + menu_hash_to_str_enum(MENU_ENUM_LABEL_VIDEO_FILTER_FLICKER), + menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_VIDEO_FILTER_FLICKER), 0, group_info, subgroup_info,