(Menu) Aspect ratio - selectively hide/show values based on whether
you have Custom or Config selected
This commit is contained in:
parent
779c0a01d3
commit
3be60539ce
|
@ -5723,6 +5723,8 @@ unsigned menu_displaylist_build_list(file_list_t *list, enum menu_displaylist_ct
|
|||
}
|
||||
break;
|
||||
case DISPLAYLIST_VIDEO_SCALING_SETTINGS_LIST:
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
if (menu_displaylist_parse_settings_enum(list,
|
||||
MENU_ENUM_LABEL_VIDEO_SCALE_INTEGER,
|
||||
PARSE_ONLY_BOOL, false) == 0)
|
||||
|
@ -5731,10 +5733,15 @@ unsigned menu_displaylist_build_list(file_list_t *list, enum menu_displaylist_ct
|
|||
MENU_ENUM_LABEL_VIDEO_ASPECT_RATIO_INDEX,
|
||||
PARSE_ONLY_UINT, false) == 0)
|
||||
count++;
|
||||
switch (settings->uints.video_aspect_ratio_idx)
|
||||
{
|
||||
case ASPECT_RATIO_CONFIG:
|
||||
if (menu_displaylist_parse_settings_enum(list,
|
||||
MENU_ENUM_LABEL_VIDEO_ASPECT_RATIO,
|
||||
PARSE_ONLY_FLOAT, false) == 0)
|
||||
count++;
|
||||
break;
|
||||
case ASPECT_RATIO_CUSTOM:
|
||||
if (menu_displaylist_parse_settings_enum(list,
|
||||
MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_X,
|
||||
PARSE_ONLY_INT, false) == 0)
|
||||
|
@ -5751,6 +5758,11 @@ unsigned menu_displaylist_build_list(file_list_t *list, enum menu_displaylist_ct
|
|||
MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_HEIGHT,
|
||||
PARSE_ONLY_UINT, false) == 0)
|
||||
count++;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (menu_displaylist_parse_settings_enum(list,
|
||||
MENU_ENUM_LABEL_VIDEO_VI_WIDTH,
|
||||
PARSE_ONLY_UINT, false) == 0)
|
||||
|
@ -5771,6 +5783,7 @@ unsigned menu_displaylist_build_list(file_list_t *list, enum menu_displaylist_ct
|
|||
MENU_ENUM_LABEL_VIDEO_OVERSCAN_CORRECTION_BOTTOM,
|
||||
PARSE_ONLY_UINT, false) == 0)
|
||||
count++;
|
||||
}
|
||||
break;
|
||||
case DISPLAYLIST_CRT_SWITCHRES_SETTINGS_LIST:
|
||||
{
|
||||
|
|
|
@ -9612,6 +9612,8 @@ static bool setting_append_list(
|
|||
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
||||
(*list)[list_info->index - 1].get_string_representation =
|
||||
&setting_get_string_representation_uint_aspect_ratio_index;
|
||||
(*list)[list_info->index - 1].action_left = setting_uint_action_left_with_refresh;
|
||||
(*list)[list_info->index - 1].action_right = setting_uint_action_right_with_refresh;
|
||||
|
||||
CONFIG_FLOAT(
|
||||
list, list_info,
|
||||
|
|
Loading…
Reference in New Issue