From 776d63bcd388348ea8982a249364dede17f89a67 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 9 Apr 2017 10:54:02 +0200 Subject: [PATCH] Simplify condition for enabling/disabling vertex rounding checkbox Also moving the code further up in the function so that it's consistent with how the other settings are handled. --- Source/Core/DolphinWX/VideoConfigDiag.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Source/Core/DolphinWX/VideoConfigDiag.cpp b/Source/Core/DolphinWX/VideoConfigDiag.cpp index 0fa7e48912..6f4ae390d2 100644 --- a/Source/Core/DolphinWX/VideoConfigDiag.cpp +++ b/Source/Core/DolphinWX/VideoConfigDiag.cpp @@ -1118,6 +1118,9 @@ void VideoConfigDiag::OnUpdateUI(wxUpdateUIEvent& ev) // custom textures cache_hires_textures->Enable(vconfig.bHiresTextures); + // Vertex rounding + vertex_rounding_checkbox->Enable(vconfig.iEFBScale != SCALE_1X); + // Repopulating the post-processing shaders can't be done from an event if (choice_ppshader && choice_ppshader->IsEmpty()) PopulatePostProcessingShaders(); @@ -1146,16 +1149,6 @@ void VideoConfigDiag::OnUpdateUI(wxUpdateUIEvent& ev) render_to_main_checkbox->Disable(); } - // Don't enable 'vertex rounding' at native - if (vconfig.iEFBScale == SCALE_1X) - { - vertex_rounding_checkbox->Enable(false); - } - else - { - vertex_rounding_checkbox->Enable(true); - } - ev.Skip(); }