瀏覽代碼

Init CORE.Window.focused

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

+ 2 - 0
src/core.c

@@ -681,7 +681,9 @@ void InitWindow(int width, int height, const char *title)
     // Init graphics device (display device and OpenGL context)
     // NOTE: returns true if window and graphic device has been initialized successfully
     CORE.Window.ready = InitGraphicsDevice(width, height);
+
     if (!CORE.Window.ready) return;
+    else CORE.Window.focused = true;
 
     // Init hi-res timer
     InitTimer();