Fixed error while handling hidden windows

This commit is contained in:
tusharsingh09 2022-01-29 17:07:50 +05:30
parent 7ef7f57d79
commit 88d80e22ef

View File

@ -928,10 +928,18 @@ void InitWindowAt(int width, int height, int x, int y, const char* title)
if(x <= 0) x = 0;
if(y <= 25) y = 25;
if((CORE.Window.flags & FLAG_WINDOW_HIDDEN) > 0)
{
InitWindow(width, height, title);
SetWindowPosition(x, y);
}
else
{
SetConfigFlags(FLAG_WINDOW_HIDDEN);
InitWindow(width, height, title);
SetWindowPosition(x, y);
glfwShowWindow(CORE.Window.handle);
}
#endif
}