From bc150ac9c80b75c73de8436dd58ccd0976eda836 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 17 Jan 2013 20:18:17 +0100 Subject: [PATCH] Forced resizable to true for fullscreen windows. --- src/window.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/window.c b/src/window.c index 69cf6050..44b10a41 100644 --- a/src/window.c +++ b/src/window.c @@ -276,18 +276,20 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, // Remember window settings window->width = width; window->height = height; - window->resizable = wndconfig.resizable; window->cursorMode = GLFW_CURSOR_NORMAL; - - window->monitor = wndconfig.monitor; - if (window->monitor) + window->monitor = wndconfig.monitor; + if (wndconfig.monitor) { + window->resizable = GL_TRUE; + window->videoMode.width = width; window->videoMode.height = height; window->videoMode.redBits = fbconfig.redBits; window->videoMode.greenBits = fbconfig.greenBits; window->videoMode.blueBits = fbconfig.blueBits; } + else + window->resizable = wndconfig.resizable; // Save the currently current context so it can be restored later previous = (_GLFWwindow*) glfwGetCurrentContext();