diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/options.cpp | 7 | ||||
-rw-r--r-- | gui/options.h | 3 |
2 files changed, 2 insertions, 8 deletions
diff --git a/gui/options.cpp b/gui/options.cpp index ffce01fc1e..30ca132516 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -211,7 +211,8 @@ void OptionsDialog::build() { // AndroidSDL options if (ConfMan.hasKey("touchpad_mouse_mode", _domain)) { bool touchpadState = ConfMan.getBool("touchpad_mouse_mode", _domain); - _touchpadCheckbox->setState(touchpadState); + if (_touchpadCheckbox != 0) + _touchpadCheckbox->setState(touchpadState); } #endif @@ -693,10 +694,6 @@ void OptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data } } -void OptionsDialog::setAndroidSdlSettingsState(bool enabled) { - _enableAndroidSdlSettings = enabled; -} - void OptionsDialog::setGraphicSettingsState(bool enabled) { _enableGraphicSettings = enabled; diff --git a/gui/options.h b/gui/options.h index e6bb195b41..046e9acf6d 100644 --- a/gui/options.h +++ b/gui/options.h @@ -99,9 +99,6 @@ protected: void addSubtitleControls(GuiObject *boss, const Common::String &prefix, int maxSliderVal = 255); void addEngineControls(GuiObject *boss, const Common::String &prefix, const ExtraGuiOptions &engineOptions); -#ifdef ANDROIDSDL - void setAndroidSdlSettingsState(bool enabled); -#endif void setGraphicSettingsState(bool enabled); void setAudioSettingsState(bool enabled); void setMIDISettingsState(bool enabled); |