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:
pelya
2010-09-29 15:32:40 +03:00
parent f1d23b2cf1
commit fd41a03480
8 changed files with 144 additions and 40 deletions

View File

@@ -80,7 +80,7 @@ public class MainActivity extends Activity {
}
@Override
protected void onStop()
protected void onDestroy()
{
if( downloader != null ) {
synchronized( downloader ) {
@@ -89,8 +89,8 @@ public class MainActivity extends Activity {
}
if( mGLView != null )
mGLView.exitApp();
super.onStop();
finish();
super.onDestroy();
System.exit(0);
}
@Override