|
@@ -1133,15 +1133,19 @@ void SetWindowState(unsigned int flags)
|
|
// State change: FLAG_WINDOW_RESIZABLE
|
|
// State change: FLAG_WINDOW_RESIZABLE
|
|
if (((CORE.Window.flags & FLAG_WINDOW_RESIZABLE) != (flags & FLAG_WINDOW_RESIZABLE)) && ((flags & FLAG_WINDOW_RESIZABLE) > 0))
|
|
if (((CORE.Window.flags & FLAG_WINDOW_RESIZABLE) != (flags & FLAG_WINDOW_RESIZABLE)) && ((flags & FLAG_WINDOW_RESIZABLE) > 0))
|
|
{
|
|
{
|
|
|
|
+#if defined(PLATFORM_DESKTOP)
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_RESIZABLE, GLFW_TRUE);
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_RESIZABLE, GLFW_TRUE);
|
|
CORE.Window.flags |= FLAG_WINDOW_RESIZABLE;
|
|
CORE.Window.flags |= FLAG_WINDOW_RESIZABLE;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
// State change: FLAG_WINDOW_UNDECORATED
|
|
// State change: FLAG_WINDOW_UNDECORATED
|
|
if (((CORE.Window.flags & FLAG_WINDOW_UNDECORATED) != (flags & FLAG_WINDOW_UNDECORATED)) && (flags & FLAG_WINDOW_UNDECORATED))
|
|
if (((CORE.Window.flags & FLAG_WINDOW_UNDECORATED) != (flags & FLAG_WINDOW_UNDECORATED)) && (flags & FLAG_WINDOW_UNDECORATED))
|
|
{
|
|
{
|
|
|
|
+#if defined(PLATFORM_DESKTOP)
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_DECORATED, GLFW_FALSE);
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_DECORATED, GLFW_FALSE);
|
|
CORE.Window.flags |= FLAG_WINDOW_UNDECORATED;
|
|
CORE.Window.flags |= FLAG_WINDOW_UNDECORATED;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
// State change: FLAG_WINDOW_HIDDEN
|
|
// State change: FLAG_WINDOW_HIDDEN
|
|
@@ -1168,15 +1172,19 @@ void SetWindowState(unsigned int flags)
|
|
// State change: FLAG_WINDOW_UNFOCUSED
|
|
// State change: FLAG_WINDOW_UNFOCUSED
|
|
if (((CORE.Window.flags & FLAG_WINDOW_UNFOCUSED) != (flags & FLAG_WINDOW_UNFOCUSED)) && ((flags & FLAG_WINDOW_UNFOCUSED) > 0))
|
|
if (((CORE.Window.flags & FLAG_WINDOW_UNFOCUSED) != (flags & FLAG_WINDOW_UNFOCUSED)) && ((flags & FLAG_WINDOW_UNFOCUSED) > 0))
|
|
{
|
|
{
|
|
|
|
+#if defined(PLATFORM_DESKTOP)
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_FOCUS_ON_SHOW, GLFW_FALSE);
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_FOCUS_ON_SHOW, GLFW_FALSE);
|
|
CORE.Window.flags |= FLAG_WINDOW_UNFOCUSED;
|
|
CORE.Window.flags |= FLAG_WINDOW_UNFOCUSED;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
// State change: FLAG_WINDOW_TOPMOST
|
|
// State change: FLAG_WINDOW_TOPMOST
|
|
if (((CORE.Window.flags & FLAG_WINDOW_TOPMOST) != (flags & FLAG_WINDOW_TOPMOST)) && ((flags & FLAG_WINDOW_TOPMOST) > 0))
|
|
if (((CORE.Window.flags & FLAG_WINDOW_TOPMOST) != (flags & FLAG_WINDOW_TOPMOST)) && ((flags & FLAG_WINDOW_TOPMOST) > 0))
|
|
{
|
|
{
|
|
|
|
+#if defined(PLATFORM_DESKTOP)
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_FLOATING, GLFW_TRUE);
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_FLOATING, GLFW_TRUE);
|
|
CORE.Window.flags |= FLAG_WINDOW_TOPMOST;
|
|
CORE.Window.flags |= FLAG_WINDOW_TOPMOST;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
// State change: FLAG_WINDOW_ALWAYS_RUN
|
|
// State change: FLAG_WINDOW_ALWAYS_RUN
|
|
@@ -1234,15 +1242,19 @@ void ClearWindowState(unsigned int flags)
|
|
// State change: FLAG_WINDOW_RESIZABLE
|
|
// State change: FLAG_WINDOW_RESIZABLE
|
|
if (((CORE.Window.flags & FLAG_WINDOW_RESIZABLE) > 0) && ((flags & FLAG_WINDOW_RESIZABLE) > 0))
|
|
if (((CORE.Window.flags & FLAG_WINDOW_RESIZABLE) > 0) && ((flags & FLAG_WINDOW_RESIZABLE) > 0))
|
|
{
|
|
{
|
|
|
|
+#if defined(PLATFORM_DESKTOP)
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_RESIZABLE, GLFW_FALSE);
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_RESIZABLE, GLFW_FALSE);
|
|
CORE.Window.flags &= ~FLAG_WINDOW_RESIZABLE;
|
|
CORE.Window.flags &= ~FLAG_WINDOW_RESIZABLE;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
// State change: FLAG_WINDOW_UNDECORATED
|
|
// State change: FLAG_WINDOW_UNDECORATED
|
|
if (((CORE.Window.flags & FLAG_WINDOW_UNDECORATED) > 0) && ((flags & FLAG_WINDOW_UNDECORATED) > 0))
|
|
if (((CORE.Window.flags & FLAG_WINDOW_UNDECORATED) > 0) && ((flags & FLAG_WINDOW_UNDECORATED) > 0))
|
|
{
|
|
{
|
|
|
|
+#if defined(PLATFORM_DESKTOP)
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_DECORATED, GLFW_TRUE);
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_DECORATED, GLFW_TRUE);
|
|
CORE.Window.flags &= ~FLAG_WINDOW_UNDECORATED;
|
|
CORE.Window.flags &= ~FLAG_WINDOW_UNDECORATED;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
// State change: FLAG_WINDOW_HIDDEN
|
|
// State change: FLAG_WINDOW_HIDDEN
|
|
@@ -1267,15 +1279,19 @@ void ClearWindowState(unsigned int flags)
|
|
// State change: FLAG_WINDOW_UNFOCUSED
|
|
// State change: FLAG_WINDOW_UNFOCUSED
|
|
if (((CORE.Window.flags & FLAG_WINDOW_UNFOCUSED) > 0) && ((flags & FLAG_WINDOW_UNFOCUSED) > 0))
|
|
if (((CORE.Window.flags & FLAG_WINDOW_UNFOCUSED) > 0) && ((flags & FLAG_WINDOW_UNFOCUSED) > 0))
|
|
{
|
|
{
|
|
|
|
+#if defined(PLATFORM_DESKTOP)
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_FOCUS_ON_SHOW, GLFW_TRUE);
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_FOCUS_ON_SHOW, GLFW_TRUE);
|
|
CORE.Window.flags &= ~FLAG_WINDOW_UNFOCUSED;
|
|
CORE.Window.flags &= ~FLAG_WINDOW_UNFOCUSED;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
// State change: FLAG_WINDOW_TOPMOST
|
|
// State change: FLAG_WINDOW_TOPMOST
|
|
if (((CORE.Window.flags & FLAG_WINDOW_TOPMOST) > 0) && ((flags & FLAG_WINDOW_TOPMOST) > 0))
|
|
if (((CORE.Window.flags & FLAG_WINDOW_TOPMOST) > 0) && ((flags & FLAG_WINDOW_TOPMOST) > 0))
|
|
{
|
|
{
|
|
|
|
+#if defined(PLATFORM_DESKTOP)
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_FLOATING, GLFW_FALSE);
|
|
glfwSetWindowAttrib(CORE.Window.handle, GLFW_FLOATING, GLFW_FALSE);
|
|
CORE.Window.flags &= ~FLAG_WINDOW_TOPMOST;
|
|
CORE.Window.flags &= ~FLAG_WINDOW_TOPMOST;
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
// State change: FLAG_WINDOW_ALWAYS_RUN
|
|
// State change: FLAG_WINDOW_ALWAYS_RUN
|