mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 13:27:41 -07:00
Fix VSync control being enabled in the wrong place
This commit is contained in:
parent
626d2379bc
commit
c6759c5fa6
@ -151,6 +151,7 @@ void VideoSettingsDialog::onChange3DRenderer(int renderer)
|
|||||||
auto& cfg = emuInstance->getGlobalConfig();
|
auto& cfg = emuInstance->getGlobalConfig();
|
||||||
cfg.SetInt("3D.Renderer", renderer);
|
cfg.SetInt("3D.Renderer", renderer);
|
||||||
|
|
||||||
|
setVsyncControlEnable(UsesGL());
|
||||||
setEnabled();
|
setEnabled();
|
||||||
|
|
||||||
emit updateVideoSettings(old_gl != UsesGL());
|
emit updateVideoSettings(old_gl != UsesGL());
|
||||||
@ -203,8 +204,6 @@ void VideoSettingsDialog::on_cbxGLResolution_currentIndexChanged(int idx)
|
|||||||
auto& cfg = emuInstance->getGlobalConfig();
|
auto& cfg = emuInstance->getGlobalConfig();
|
||||||
cfg.SetInt("3D.GL.ScaleFactor", idx+1);
|
cfg.SetInt("3D.GL.ScaleFactor", idx+1);
|
||||||
|
|
||||||
setVsyncControlEnable(UsesGL());
|
|
||||||
|
|
||||||
emit updateVideoSettings(false);
|
emit updateVideoSettings(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user