Make sure CORE.Window.ready is set
This commit is contained in:
parent
b34c2ecbcb
commit
54950f9a3d
1 changed files with 6 additions and 0 deletions
|
|
@ -1035,6 +1035,8 @@ static int InitPlatform(void)
|
|||
|
||||
if ((CORE.Window.flags & FLAG_WINDOW_MINIMIZED) > 0) MinimizeWindow();
|
||||
|
||||
CORE.Window.ready = true; // TODO: Proper validation on windows/context creation
|
||||
|
||||
// If graphic device is no properly initialized, we end program
|
||||
if (!CORE.Window.ready) { TRACELOG(LOG_FATAL, "PLATFORM: Failed to initialize graphic device"); return -1; }
|
||||
else SetWindowPosition(GetMonitorWidth(GetCurrentMonitor()) / 2 - CORE.Window.screen.width / 2, GetMonitorHeight(GetCurrentMonitor()) / 2 - CORE.Window.screen.height / 2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue