summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-04-29 20:55:17 +0200
committerraysan5 <[email protected]>2020-04-29 20:55:17 +0200
commitac8f436c3b28d5b014aab82f656ac59185fc7b75 (patch)
tree5aea57e235b0fcd02e142b430dd72b06d1e41a06 /src/core.c
parente65d15f6ad6f9ade05999b66fdd91d3f6eb2a2d0 (diff)
downloadraylib-ac8f436c3b28d5b014aab82f656ac59185fc7b75.tar.gz
raylib-ac8f436c3b28d5b014aab82f656ac59185fc7b75.zip
Init CORE.Window.focused
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index da40eb82..d7e3a6b4 100644
--- a/src/core.c
+++ b/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();