Fixed error while handling hidden windows
This commit is contained in:
parent
7ef7f57d79
commit
88d80e22ef
16
src/rcore.c
16
src/rcore.c
|
|
@ -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;
|
||||
|
||||
SetConfigFlags(FLAG_WINDOW_HIDDEN);
|
||||
InitWindow(width, height, title);
|
||||
SetWindowPosition(x, y);
|
||||
glfwShowWindow(CORE.Window.handle);
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user