summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-04-09 10:54:02 +0200
committerJosJuice <josjuice@gmail.com>2017-04-09 10:54:02 +0200
commit776d63bcd388348ea8982a249364dede17f89a67 (patch)
tree80ad44daded4b5095b14080a2bb7d8d076d0cad1 /Source/Core
parent055adad8f17820c1eafb3294226fb9cb71d2f3ad (diff)
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.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/VideoConfigDiag.cpp13
1 files 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();
}