mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
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:
parent
a63040b60e
commit
9acdbe42af
@ -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)) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user