mirror of
				https://github.com/glfw/glfw.git
				synced 2025-11-03 22:04:15 +00:00 
			
		
		
		
	Moved mode setting to after window re-creation.
This commit is contained in:
		
							parent
							
								
									a90389044d
								
							
						
					
					
						commit
						aaa955f51f
					
				@ -862,12 +862,6 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
 | 
				
			|||||||
            return GL_FALSE;
 | 
					            return GL_FALSE;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (window->monitor)
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        if (!_glfwSetVideoMode(window->monitor, &window->videoMode))
 | 
					 | 
				
			||||||
            return GL_FALSE;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (!createWindow(window, wndconfig, fbconfig))
 | 
					    if (!createWindow(window, wndconfig, fbconfig))
 | 
				
			||||||
        return GL_FALSE;
 | 
					        return GL_FALSE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -909,6 +903,9 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if (window->monitor)
 | 
					    if (window->monitor)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					        if (!_glfwSetVideoMode(window->monitor, &window->videoMode))
 | 
				
			||||||
 | 
					            return GL_FALSE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Place the window above all topmost windows
 | 
					        // Place the window above all topmost windows
 | 
				
			||||||
        _glfwPlatformShowWindow(window);
 | 
					        _glfwPlatformShowWindow(window);
 | 
				
			||||||
        SetWindowPos(window->win32.handle, HWND_TOPMOST, 0,0,0,0,
 | 
					        SetWindowPos(window->win32.handle, HWND_TOPMOST, 0,0,0,0,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user