From 21c2dda5ba42d65cba71c3f27bb6679ecdd01c9e Mon Sep 17 00:00:00 2001 From: dhewg Date: Sun, 6 Feb 2011 19:38:15 +0100 Subject: ANDROID: Use and reinit texture on screen changes - EVENT_SCREEN_CHANGED must happen _after_ we have a new surface, not when the the old surface vanishes. fixes port on galaxy tab - textures have to be redefined with glTexImage2D() to make glTexSubImage2D() not fail on screen changes --- backends/platform/android/org/inodes/gus/scummvm/ScummVM.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'backends/platform/android/org/inodes') diff --git a/backends/platform/android/org/inodes/gus/scummvm/ScummVM.java b/backends/platform/android/org/inodes/gus/scummvm/ScummVM.java index bb4a3dd061..0e905f43a5 100644 --- a/backends/platform/android/org/inodes/gus/scummvm/ScummVM.java +++ b/backends/platform/android/org/inodes/gus/scummvm/ScummVM.java @@ -98,11 +98,10 @@ public class ScummVM implements SurfaceHolder.Callback { public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { // Disabled while I debug GL problems - //pushEvent(new Event(Event.EVENT_SCREEN_CHANGED)); + pushEvent(new Event(Event.EVENT_SCREEN_CHANGED)); } public void surfaceDestroyed(SurfaceHolder holder) { - pushEvent(new Event(Event.EVENT_SCREEN_CHANGED)); try { surfaceLock.acquire(); } catch (InterruptedException e) { -- cgit v1.2.3