SDL 1.3 WILL NOT COMPILE! OpenTyrian can be successfully put to background and restored, yay! However music keeps playing while on background, little annoying.
Also I'm not sure how my code will behave on Android 1.6
This commit is contained in:
@@ -938,12 +938,14 @@ public class GLSurfaceView_SDL extends SurfaceView implements SurfaceHolder.Call
|
||||
while(true) { // Loop until we're re-created GL context and successfully called swap()
|
||||
|
||||
int w, h;
|
||||
boolean changed;
|
||||
boolean changed = false;
|
||||
synchronized (this) {
|
||||
/*
|
||||
Runnable r;
|
||||
while ((r = getEvent()) != null) {
|
||||
r.run();
|
||||
}
|
||||
*/
|
||||
if (mPaused) {
|
||||
mRenderer.onSurfaceDestroyed();
|
||||
mEglHelper.finish();
|
||||
@@ -956,7 +958,7 @@ public class GLSurfaceView_SDL extends SurfaceView implements SurfaceHolder.Call
|
||||
if (mDone) {
|
||||
return false;
|
||||
}
|
||||
changed = mSizeChanged;
|
||||
// changed = mSizeChanged;
|
||||
w = mWidth;
|
||||
h = mHeight;
|
||||
mSizeChanged = false;
|
||||
|
||||
Reference in New Issue
Block a user