mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
(Menu) Hide Refresh Rate options when Threaded Video is enabled -
these settings do nothing with Threaded Video
This commit is contained in:
parent
abb1b28e96
commit
d33624c623
@ -5733,73 +5733,79 @@ unsigned menu_displaylist_build_list(file_list_t *list, enum menu_displaylist_ct
|
|||||||
count++;
|
count++;
|
||||||
break;
|
break;
|
||||||
case DISPLAYLIST_VIDEO_OUTPUT_SETTINGS_LIST:
|
case DISPLAYLIST_VIDEO_OUTPUT_SETTINGS_LIST:
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
{
|
||||||
MENU_ENUM_LABEL_VIDEO_DRIVER,
|
bool *threaded = video_driver_get_threaded();
|
||||||
PARSE_ONLY_STRING_OPTIONS, false) == 0)
|
|
||||||
count++;
|
|
||||||
#if defined(GEKKO) || defined(__CELLOS_LV2__)
|
|
||||||
if (true)
|
|
||||||
#else
|
|
||||||
if (video_display_server_has_resolution_list())
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
|
||||||
MENU_ENUM_LABEL_SCREEN_RESOLUTION,
|
|
||||||
PARSE_ACTION, false) == 0)
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
|
||||||
MENU_ENUM_LABEL_PAL60_ENABLE,
|
|
||||||
PARSE_ONLY_BOOL, false) == 0)
|
|
||||||
count++;
|
|
||||||
|
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
|
||||||
MENU_ENUM_LABEL_VIDEO_GAMMA,
|
|
||||||
PARSE_ONLY_UINT, false) == 0)
|
|
||||||
count++;
|
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
|
||||||
MENU_ENUM_LABEL_VIDEO_SOFT_FILTER,
|
|
||||||
PARSE_ONLY_BOOL, false) == 0)
|
|
||||||
count++;
|
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
|
||||||
MENU_ENUM_LABEL_VIDEO_FILTER_FLICKER,
|
|
||||||
PARSE_ONLY_UINT, false) == 0)
|
|
||||||
count++;
|
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
|
||||||
MENU_ENUM_LABEL_VIDEO_MONITOR_INDEX,
|
|
||||||
PARSE_ONLY_UINT, false) == 0)
|
|
||||||
count++;
|
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
|
||||||
MENU_ENUM_LABEL_VIDEO_ROTATION,
|
|
||||||
PARSE_ONLY_UINT, false) == 0)
|
|
||||||
count++;
|
|
||||||
|
|
||||||
if (video_display_server_can_set_screen_orientation())
|
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
MENU_ENUM_LABEL_SCREEN_ORIENTATION,
|
MENU_ENUM_LABEL_VIDEO_DRIVER,
|
||||||
|
PARSE_ONLY_STRING_OPTIONS, false) == 0)
|
||||||
|
count++;
|
||||||
|
#if defined(GEKKO) || defined(__CELLOS_LV2__)
|
||||||
|
if (true)
|
||||||
|
#else
|
||||||
|
if (video_display_server_has_resolution_list())
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
|
MENU_ENUM_LABEL_SCREEN_RESOLUTION,
|
||||||
|
PARSE_ACTION, false) == 0)
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
|
MENU_ENUM_LABEL_PAL60_ENABLE,
|
||||||
|
PARSE_ONLY_BOOL, false) == 0)
|
||||||
|
count++;
|
||||||
|
|
||||||
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
|
MENU_ENUM_LABEL_VIDEO_GAMMA,
|
||||||
PARSE_ONLY_UINT, false) == 0)
|
PARSE_ONLY_UINT, false) == 0)
|
||||||
count++;
|
count++;
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
MENU_ENUM_LABEL_VIDEO_GPU_INDEX,
|
MENU_ENUM_LABEL_VIDEO_SOFT_FILTER,
|
||||||
PARSE_ONLY_INT, false) == 0)
|
PARSE_ONLY_BOOL, false) == 0)
|
||||||
count++;
|
count++;
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
MENU_ENUM_LABEL_VIDEO_REFRESH_RATE,
|
MENU_ENUM_LABEL_VIDEO_FILTER_FLICKER,
|
||||||
PARSE_ONLY_FLOAT, false) == 0)
|
PARSE_ONLY_UINT, false) == 0)
|
||||||
count++;
|
count++;
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_AUTO,
|
MENU_ENUM_LABEL_VIDEO_MONITOR_INDEX,
|
||||||
PARSE_ONLY_FLOAT, false) == 0)
|
PARSE_ONLY_UINT, false) == 0)
|
||||||
count++;
|
count++;
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_POLLED,
|
MENU_ENUM_LABEL_VIDEO_ROTATION,
|
||||||
PARSE_ONLY_FLOAT, false) == 0)
|
PARSE_ONLY_UINT, false) == 0)
|
||||||
count++;
|
count++;
|
||||||
if (menu_displaylist_parse_settings_enum(list,
|
|
||||||
MENU_ENUM_LABEL_VIDEO_FORCE_SRGB_DISABLE,
|
if (video_display_server_can_set_screen_orientation())
|
||||||
PARSE_ONLY_BOOL, false) == 0)
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
count++;
|
MENU_ENUM_LABEL_SCREEN_ORIENTATION,
|
||||||
|
PARSE_ONLY_UINT, false) == 0)
|
||||||
|
count++;
|
||||||
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
|
MENU_ENUM_LABEL_VIDEO_GPU_INDEX,
|
||||||
|
PARSE_ONLY_INT, false) == 0)
|
||||||
|
count++;
|
||||||
|
if (threaded && !*threaded)
|
||||||
|
{
|
||||||
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
|
MENU_ENUM_LABEL_VIDEO_REFRESH_RATE,
|
||||||
|
PARSE_ONLY_FLOAT, false) == 0)
|
||||||
|
count++;
|
||||||
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
|
MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_AUTO,
|
||||||
|
PARSE_ONLY_FLOAT, false) == 0)
|
||||||
|
count++;
|
||||||
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
|
MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_POLLED,
|
||||||
|
PARSE_ONLY_FLOAT, false) == 0)
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
if (menu_displaylist_parse_settings_enum(list,
|
||||||
|
MENU_ENUM_LABEL_VIDEO_FORCE_SRGB_DISABLE,
|
||||||
|
PARSE_ONLY_BOOL, false) == 0)
|
||||||
|
count++;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case DISPLAYLIST_VIDEO_SYNCHRONIZATION_SETTINGS_LIST:
|
case DISPLAYLIST_VIDEO_SYNCHRONIZATION_SETTINGS_LIST:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user