fix bug with vsync checkbox
This commit is contained in:
parent
f70ee39543
commit
a4f9187b9b
|
@ -137,6 +137,10 @@ void OnRendererChanged(uiRadioButtons* rb, void* blarg)
|
||||||
UpdateControls();
|
UpdateControls();
|
||||||
|
|
||||||
bool new_usegl = (Config::ScreenUseGL != 0) || (Config::_3DRenderer != 0);
|
bool new_usegl = (Config::ScreenUseGL != 0) || (Config::_3DRenderer != 0);
|
||||||
|
|
||||||
|
if (new_usegl) uiControlEnable(uiControl(cbVSync));
|
||||||
|
else uiControlDisable(uiControl(cbVSync));
|
||||||
|
|
||||||
if (new_usegl != old_usegl)
|
if (new_usegl != old_usegl)
|
||||||
ApplyNewSettings(2);
|
ApplyNewSettings(2);
|
||||||
else
|
else
|
||||||
|
@ -332,8 +336,10 @@ void Open()
|
||||||
uiRadioButtonsSetSelected(rbRenderer, Config::_3DRenderer);
|
uiRadioButtonsSetSelected(rbRenderer, Config::_3DRenderer);
|
||||||
UpdateControls();
|
UpdateControls();
|
||||||
|
|
||||||
if (Config::ScreenUseGL) uiControlEnable(uiControl(cbVSync));
|
if (Config::ScreenUseGL || Config::_3DRenderer != 0)
|
||||||
else uiControlDisable(uiControl(cbVSync));
|
uiControlEnable(uiControl(cbVSync));
|
||||||
|
else
|
||||||
|
uiControlDisable(uiControl(cbVSync));
|
||||||
|
|
||||||
uiControlShow(uiControl(win));
|
uiControlShow(uiControl(win));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue