Fix MaximizeWindow() not resizing the screen

This commit is contained in:
maradh251 2026-07-06 03:20:55 +02:00
commit bc83ee48db

View file

@ -334,12 +334,13 @@ void ToggleBorderlessWindowed(void)
// Set window state: maximized, if resizable // Set window state: maximized, if resizable
void MaximizeWindow(void) void MaximizeWindow(void)
{ {
if (glfwGetWindowAttrib(platform.handle, GLFW_RESIZABLE) == GLFW_TRUE) if (glfwGetWindowAttrib(platform.handle, GLFW_RESIZABLE) != GLFW_TRUE)
{ {
glfwSetWindowAttrib(platform.handle, GLFW_RESIZABLE, GLFW_TRUE);
}
glfwMaximizeWindow(platform.handle); glfwMaximizeWindow(platform.handle);
FLAG_SET(CORE.Window.flags, FLAG_WINDOW_MAXIMIZED); FLAG_SET(CORE.Window.flags, FLAG_WINDOW_MAXIMIZED);
} }
}
// Set window state: minimized // Set window state: minimized
void MinimizeWindow(void) void MinimizeWindow(void)