aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordhewg2011-03-02 23:41:59 +0100
committerdhewg2011-03-02 23:41:59 +0100
commit719d22918d8058cba68923b4c11b792dbe76f22f (patch)
tree6906783bd62ac30e2a6fe9ff4bc7b4b0d587439a
parent2d4a64d18493b142b1899a822202015339733cfa (diff)
downloadscummvm-rg350-719d22918d8058cba68923b4c11b792dbe76f22f.tar.gz
scummvm-rg350-719d22918d8058cba68923b4c11b792dbe76f22f.tar.bz2
scummvm-rg350-719d22918d8058cba68923b4c11b792dbe76f22f.zip
ANDROID: Respect the pause level.
-rw-r--r--backends/platform/android/jni.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/backends/platform/android/jni.cpp b/backends/platform/android/jni.cpp
index 9ecd9577e7..175973079f 100644
--- a/backends/platform/android/jni.cpp
+++ b/backends/platform/android/jni.cpp
@@ -629,12 +629,10 @@ void JNI::pauseEngine(JNIEnv *env, jobject self, jboolean value) {
if (!_system)
return;
- if (g_engine)
- if ((value && !g_engine->isPaused()) ||
- (!value && g_engine->isPaused())) {
- LOGD("pauseEngine: %d", value);
- g_engine->pauseEngine(value);
- }
+ if (g_engine) {
+ LOGD("pauseEngine: %d", value);
+ g_engine->pauseEngine(value);
+ }
pause = value;