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.
This commit is contained in:
JosJuice 2017-04-09 10:54:02 +02:00
parent 055adad8f1
commit 776d63bcd3
1 changed files with 3 additions and 10 deletions

View File

@ -1118,6 +1118,9 @@ void VideoConfigDiag::OnUpdateUI(wxUpdateUIEvent& ev)
// custom textures // custom textures
cache_hires_textures->Enable(vconfig.bHiresTextures); 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 // Repopulating the post-processing shaders can't be done from an event
if (choice_ppshader && choice_ppshader->IsEmpty()) if (choice_ppshader && choice_ppshader->IsEmpty())
PopulatePostProcessingShaders(); PopulatePostProcessingShaders();
@ -1146,16 +1149,6 @@ void VideoConfigDiag::OnUpdateUI(wxUpdateUIEvent& ev)
render_to_main_checkbox->Disable(); 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(); ev.Skip();
} }