diff options
author | dhewg | 2011-04-03 20:25:31 +0200 |
---|---|---|
committer | dhewg | 2011-04-03 20:34:19 +0200 |
commit | fba1c6360c0194e5cad6133dc312c1c8ae80ac39 (patch) | |
tree | 30897028212e47f2211192fec13e75382ad9c220 /backends/platform/android/org | |
parent | 1692605b0840cd869a83bd87055e9372acda0e76 (diff) | |
download | scummvm-rg350-fba1c6360c0194e5cad6133dc312c1c8ae80ac39.tar.gz scummvm-rg350-fba1c6360c0194e5cad6133dc312c1c8ae80ac39.tar.bz2 scummvm-rg350-fba1c6360c0194e5cad6133dc312c1c8ae80ac39.zip |
ANDROID: Ignore unrelated surface changes
Diffstat (limited to 'backends/platform/android/org')
-rw-r--r-- | backends/platform/android/org/inodes/gus/scummvm/ScummVM.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backends/platform/android/org/inodes/gus/scummvm/ScummVM.java b/backends/platform/android/org/inodes/gus/scummvm/ScummVM.java index fe225af48b..8bf40ac553 100644 --- a/backends/platform/android/org/inodes/gus/scummvm/ScummVM.java +++ b/backends/platform/android/org/inodes/gus/scummvm/ScummVM.java @@ -75,6 +75,14 @@ public abstract class ScummVM implements SurfaceHolder.Callback, Runnable { // SurfaceHolder callback final public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { + // the orientation may reset on standby mode and the theme manager + // could assert when using a portrait resolution. so lets not do that. + if (height > width) { + Log.d(LOG_TAG, String.format("Ignoring surfaceChanged: %dx%d (%d)", + width, height, format)); + return; + } + Log.d(LOG_TAG, String.format("surfaceChanged: %dx%d (%d)", width, height, format)); |