File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ void ToggleBorderlessWindowed(void)
319319// Set window state: maximized, if resizable
320320void MaximizeWindow (void )
321321{
322- if (glfwGetWindowAttrib (platform .handle , GLFW_RESIZABLE ) == GLFW_TRUE )
322+ if (glfwGetWindowAttrib (platform .handle , GLFW_RESIZABLE ) == GLFW_TRUE && !( CORE . Window . flags & FLAG_WINDOW_MAXIMIZED ) )
323323 {
324324 platform .unmaximizedWidth = CORE .Window .screen .width ;
325325 platform .unmaximizedHeight = CORE .Window .screen .height ;
@@ -342,7 +342,7 @@ void MinimizeWindow(void)
342342// Set window state: not minimized/maximized
343343void RestoreWindow (void )
344344{
345- if (glfwGetWindowAttrib (platform .handle , GLFW_RESIZABLE ) == GLFW_TRUE )
345+ if (glfwGetWindowAttrib (platform .handle , GLFW_RESIZABLE ) == GLFW_TRUE && ( CORE . Window . flags & FLAG_WINDOW_MAXIMIZED ) )
346346 {
347347 if (platform .unmaximizedWidth && platform .unmaximizedHeight ) glfwSetWindowSize (platform .handle , platform .unmaximizedWidth , platform .unmaximizedHeight );
348348
You can’t perform that action at this time.
0 commit comments