Merge pull request #5231 from JosJuice/vertex-rounding-condition

Simplify condition for enabling/disabling vertex rounding checkbox
This commit is contained in:
Mat M 2017-04-09 05:35:53 -04:00 committed by GitHub
commit 188f2b3cc5

View file

@ -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();
}