mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
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:
parent
055adad8f1
commit
776d63bcd3
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user