aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorStrangerke2011-10-24 16:51:18 +0200
committerStrangerke2011-10-24 16:51:18 +0200
commit9912d7b85699d9a0b273d7c8b870d3db8bf8438a (patch)
tree9778c6b8688ddb7f63a73836bde4c7c48db6bc2e /gui
parent9256652fcf2762f3f6efd2eded66321150312e9a (diff)
downloadscummvm-rg350-9912d7b85699d9a0b273d7c8b870d3db8bf8438a.tar.gz
scummvm-rg350-9912d7b85699d9a0b273d7c8b870d3db8bf8438a.tar.bz2
scummvm-rg350-9912d7b85699d9a0b273d7c8b870d3db8bf8438a.zip
GUI: Add GUIO EGA Dithering option
This will be used to disable the EGA dithering option
Diffstat (limited to 'gui')
-rw-r--r--gui/options.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index a2896cf921..8b4d9d183e 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -210,7 +210,15 @@ void OptionsDialog::open() {
_aspectCheckbox->setState(ConfMan.getBool("aspect_ratio", _domain));
}
#endif // SMALL_SCREEN_DEVICE
- _disableDitheringCheckbox->setState(ConfMan.getBool("disable_dithering", _domain));
+
+ // EGA undithering setting
+ if (_guioptions.contains(GUIO_EGAUNDITHER)) {
+ _disableDitheringCheckbox->setEnabled(true);
+ _disableDitheringCheckbox->setState(ConfMan.getBool("disable_dithering", _domain));
+ } else {
+ _disableDitheringCheckbox->setState(false);
+ _disableDitheringCheckbox->setEnabled(false);
+ }
}
// Audio options
@@ -597,7 +605,10 @@ void OptionsDialog::setGraphicSettingsState(bool enabled) {
else
_aspectCheckbox->setEnabled(enabled);
#endif
- _disableDitheringCheckbox->setEnabled(enabled);
+ if (_guioptions.contains(GUIO_EGAUNDITHER))
+ _disableDitheringCheckbox->setEnabled(true);
+ else
+ _disableDitheringCheckbox->setEnabled(false);
}
void OptionsDialog::setAudioSettingsState(bool enabled) {