mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-09 07:18:34 -04:00
One more step to recovering from config change, fix not running at all
This commit is contained in:
parent
e1909f40be
commit
b8dc2b3b80
@ -312,6 +312,7 @@ public class MainActivity extends Activity {
|
||||
public void onDestroy() {
|
||||
Log.i("CC_WIN", "APP DESTROYED");
|
||||
super.onDestroy();
|
||||
pushCmd(CMD_APP_DESTROY);
|
||||
}
|
||||
|
||||
// Called by the game thread to actually process events
|
||||
|
@ -174,7 +174,7 @@ static void JNICALL java_onDestroy(JNIEnv* env, jobject o) {
|
||||
|
||||
if (WindowInfo.Exists) Window_Close();
|
||||
/* TODO: signal to java code we're done */
|
||||
JavaCallVoid(env, "processedDestroyed", "()V", NULL);
|
||||
/* JavaCallVoid(env, "processedDestroyed", "()V", NULL); */
|
||||
}
|
||||
|
||||
static void JNICALL java_onGotFocus(JNIEnv* env, jobject o) {
|
||||
@ -259,7 +259,7 @@ static void DoCreateWindow(void) {
|
||||
/* actual window creation is done when processSurfaceCreated is received */
|
||||
Window_RemakeSurface();
|
||||
/* always start as fullscreen */
|
||||
Window_EnterFullscrene();
|
||||
Window_EnterFullscreen();
|
||||
}
|
||||
void Window_Create2D(int width, int height) { DoCreateWindow(); }
|
||||
void Window_Create3D(int width, int height) { DoCreateWindow(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user