GUI: Update "edit game" for new graphics options (#2512)

Make the new graphics options in "edit game" disabled until the user
asks to override the global settings. (Most of these were added during
the ScummVM/ResidualVM merger, I guess.)
This commit is contained in:
Torbjörn Andersson 2020-10-12 18:44:15 +02:00 committed by GitHub
parent a63040b60e
commit 9acdbe42af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -382,8 +382,13 @@ void EditGameDialog::open() {
e = ConfMan.hasKey("gfx_mode", _domain) ||
ConfMan.hasKey("render_mode", _domain) ||
ConfMan.hasKey("stretch_mode", _domain) ||
ConfMan.hasKey("aspect_ratio", _domain) ||
ConfMan.hasKey("fullscreen", _domain) ||
ConfMan.hasKey("aspect_ratio", _domain);
ConfMan.hasKey("vsync", _domain) ||
ConfMan.hasKey("filtering", _domain) ||
ConfMan.hasKey("renderer", _domain) ||
ConfMan.hasKey("antialiasing", _domain);
_globalGraphicsOverride->setState(e);
if (g_system->hasFeature(OSystem::kFeatureShader)) {

View File

@ -978,7 +978,12 @@ void OptionsDialog::setGraphicSettingsState(bool enabled) {
_renderModePopUp->setEnabled(enabled);
_stretchPopUpDesc->setEnabled(enabled);
_stretchPopUp->setEnabled(enabled);
_vsyncCheckbox->setEnabled(enabled);
_filteringCheckbox->setEnabled(enabled);
_rendererTypePopUpDesc->setEnabled(enabled);
_rendererTypePopUp->setEnabled(enabled);
_antiAliasPopUpDesc->setEnabled(enabled);
_antiAliasPopUp->setEnabled(enabled);
if (g_system->hasFeature(OSystem::kFeatureFullscreenMode))
_fullscreenCheckbox->setEnabled(enabled);