One more step to recovering from config change, fix not running at all

This commit is contained in:
UnknownShadow200 2021-09-17 09:06:08 +10:00
parent e1909f40be
commit b8dc2b3b80
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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(); }