From ac8f436c3b28d5b014aab82f656ac59185fc7b75 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Wed, 29 Apr 2020 20:55:17 +0200 Subject: [PATCH] Init CORE.Window.focused --- src/core.c | 2 ++ 1 file changed, 2 insertions(+) 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();