From d2a9bc6bccf8375196a45809ff057af64a22ecd4 Mon Sep 17 00:00:00 2001 From: iota97 Date: Fri, 7 Aug 2020 10:16:43 +0200 Subject: [PATCH] Remove double disable function on frame duplication --- UI/GameSettingsScreen.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 9945d98127..4734b179a6 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -381,15 +381,12 @@ void GameSettingsScreen::CreateViews() { #endif CheckBox *frameDuplication = graphicsSettings->Add(new CheckBox(&g_Config.bRenderDuplicateFrames, gr->T("Render duplicate frames to 60hz"))); - frameDuplication->SetEnabledFunc([] { - return g_Config.iRenderingMode != FB_NON_BUFFERED_MODE || (g_Config.bSoftwareRendering && g_Config.iFrameSkip != 0); - }); frameDuplication->OnClick.Add([=](EventParams &e) { settingInfo_->Show(gr->T("RenderDuplicateFrames Tip", "Can make framerate smoother in games that run at lower framerates"), e.v); return UI::EVENT_CONTINUE; }); - frameDuplication->SetEnabledFunc([]() -> bool { - return g_Config.iFrameSkip == 0; + frameDuplication->SetEnabledFunc([] { + return g_Config.iRenderingMode != FB_NON_BUFFERED_MODE && g_Config.iFrameSkip == 0; }); if (GetGPUBackend() == GPUBackend::VULKAN || GetGPUBackend() == GPUBackend::OPENGL) {