diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 8ba5ef68fc..72c1992e18 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -1637,6 +1637,9 @@ static int menu_cbs_init_bind_ok_compare_label(menu_file_list_cbs_t *cbs, case MENU_LABEL_CONFIGURATIONS: cbs->action_ok = action_ok_configurations_list; break; + case MENU_LABEL_CUSTOM_RATIO: + cbs->action_ok = action_ok_custom_viewport; + break; default: return -1; } @@ -1787,9 +1790,6 @@ static int menu_cbs_init_bind_ok_compare_type(menu_file_list_cbs_t *cbs, cbs->action_ok = action_ok_file_load_ffmpeg; #endif break; - case MENU_SETTINGS_CUSTOM_VIEWPORT: - cbs->action_ok = action_ok_custom_viewport; - break; case MENU_SETTINGS: case MENU_SETTING_GROUP: case MENU_SETTING_SUBGROUP: diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 64e33122f5..2a517b6b7a 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -2018,11 +2018,6 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type) menu_hash_to_str(MENU_LABEL_SCREEN_RESOLUTION), MENU_SETTINGS_VIDEO_RESOLUTION, 0, 0); #endif - menu_list_push(info->list, - menu_hash_to_str(MENU_LABEL_VALUE_CUSTOM_RATIO), - menu_hash_to_str(MENU_LABEL_CUSTOM_RATIO), - MENU_SETTINGS_CUSTOM_VIEWPORT, 0, 0); - need_push = true; break; case DISPLAYLIST_PERFCOUNTERS_CORE: diff --git a/menu/menu_setting.c b/menu/menu_setting.c index e32ffb91d7..7ebf178cac 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -4401,6 +4401,13 @@ static bool setting_append_list_video_options( (*list)[list_info->index - 1].get_string_representation = &setting_get_string_representation_uint_aspect_ratio_index; + CONFIG_ACTION( + menu_hash_to_str(MENU_LABEL_CUSTOM_RATIO), + menu_hash_to_str(MENU_LABEL_VALUE_CUSTOM_RATIO), + group_info.name, + subgroup_info.name, + parent_group); + END_SUB_GROUP(list, list_info, parent_group); START_SUB_GROUP(list, list_info, "Scaling", group_info.name, subgroup_info, parent_group);