From 779c0a01d31edfbb91491cd789035f83aa9252db Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 21 Dec 2019 00:39:30 +0100 Subject: [PATCH] Selectively hide Hard Sync --- menu/menu_displaylist.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index d313e84b32..08b889bee2 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -5953,6 +5953,7 @@ unsigned menu_displaylist_build_list(file_list_t *list, enum menu_displaylist_ct #endif case DISPLAYLIST_LATENCY_SETTINGS_LIST: { + settings_t *settings = config_get_ptr(); menu_displaylist_build_info_selective_t build_list[] = { {MENU_ENUM_LABEL_VIDEO_FRAME_DELAY, PARSE_ONLY_UINT, true }, {MENU_ENUM_LABEL_AUDIO_LATENCY, PARSE_ONLY_UINT, true }, @@ -5977,10 +5978,13 @@ unsigned menu_displaylist_build_list(file_list_t *list, enum menu_displaylist_ct MENU_ENUM_LABEL_VIDEO_HARD_SYNC, PARSE_ONLY_BOOL, false); count++; - menu_displaylist_parse_settings_enum(list, - MENU_ENUM_LABEL_VIDEO_HARD_SYNC_FRAMES, - PARSE_ONLY_UINT, false); - count++; + if (settings->bools.video_hard_sync) + { + menu_displaylist_parse_settings_enum(list, + MENU_ENUM_LABEL_VIDEO_HARD_SYNC_FRAMES, + PARSE_ONLY_UINT, false); + count++; + } } {