Fixed error while handling hidden windows
This commit is contained in:
parent
7ef7f57d79
commit
88d80e22ef
|
|
@ -928,10 +928,18 @@ void InitWindowAt(int width, int height, int x, int y, const char* title)
|
||||||
if(x <= 0) x = 0;
|
if(x <= 0) x = 0;
|
||||||
if(y <= 25) y = 25;
|
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);
|
SetConfigFlags(FLAG_WINDOW_HIDDEN);
|
||||||
InitWindow(width, height, title);
|
InitWindow(width, height, title);
|
||||||
SetWindowPosition(x, y);
|
SetWindowPosition(x, y);
|
||||||
glfwShowWindow(CORE.Window.handle);
|
glfwShowWindow(CORE.Window.handle);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user