瀏覽代碼

Corrected Android bug on Native Activity cycle

raysan5 10 年之前
父節點
當前提交
fcff83e65c
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/core.c

+ 4 - 3
src/core.c

@@ -1459,9 +1459,10 @@ static void PollInputEvents(void)
         // Check if we are exiting
         if (app->destroyRequested != 0)
         {
-            TraceLog(INFO, "Closing Window...");
-            //CloseWindow();
-            windowShouldClose = true;
+            // NOTE: Never close window, native activity is controlled by the system!
+            //TraceLog(INFO, "Closing Window...");
+            //windowShouldClose = true; 
+            
             //ANativeActivity_finish(app->activity);
         }
     }