mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 15:31:59 +00:00
ANDROID: Ignore unrelated surface changes
This commit is contained in:
parent
1692605b08
commit
fba1c6360c
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user