From aaa955f51f0e7eec28905979e9cde93b26563808 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 26 May 2013 18:05:57 +0200 Subject: [PATCH] Moved mode setting to after window re-creation. --- src/win32_window.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/win32_window.c b/src/win32_window.c index d484958b..5fceb174 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -862,12 +862,6 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window, return GL_FALSE; } - if (window->monitor) - { - if (!_glfwSetVideoMode(window->monitor, &window->videoMode)) - return GL_FALSE; - } - if (!createWindow(window, wndconfig, fbconfig)) return GL_FALSE; @@ -909,6 +903,9 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window, if (window->monitor) { + if (!_glfwSetVideoMode(window->monitor, &window->videoMode)) + return GL_FALSE; + // Place the window above all topmost windows _glfwPlatformShowWindow(window); SetWindowPos(window->win32.handle, HWND_TOPMOST, 0,0,0,0,