aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlubomyr2017-02-19 00:27:20 +0200
committerlubomyr2017-02-19 00:27:20 +0200
commitcdda943c8a3089551843be3dedaaddb6c5348555 (patch)
treedcd636b846dfa039d7fe84986b999aa0b572b3e9
parent3f921c1195e1a998d7dc0c423bf7eb4c9549c78f (diff)
downloadscummvm-rg350-cdda943c8a3089551843be3dedaaddb6c5348555.tar.gz
scummvm-rg350-cdda943c8a3089551843be3dedaaddb6c5348555.tar.bz2
scummvm-rg350-cdda943c8a3089551843be3dedaaddb6c5348555.zip
ANDROIDSDL: code refactoring
-rw-r--r--backends/platform/androidsdl/androidsdl-sdl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/androidsdl/androidsdl-sdl.cpp b/backends/platform/androidsdl/androidsdl-sdl.cpp
index f33f9b7bbc..920dad2234 100644
--- a/backends/platform/androidsdl/androidsdl-sdl.cpp
+++ b/backends/platform/androidsdl/androidsdl-sdl.cpp
@@ -57,7 +57,7 @@ void OSystem_ANDROIDSDL::initBackend() {
touchpadMode(ConfMan.getBool("touchpad_mouse_mode"));
if (!ConfMan.hasKey("onscreen_control")) {
- const bool enable = (SDL_ANDROID_GetScreenKeyboardShown() == 0) ? false : true;
+ const bool enable = SDL_ANDROID_GetScreenKeyboardShown();
ConfMan.setBool("onscreen_control", enable);
} else
showOnScreenControl(ConfMan.getBool("onscreen_control"));