mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-30 05:58:52 -05:00
Forced resizable to true for fullscreen windows.
This commit is contained in:
parent
52a79c6f3b
commit
bc150ac9c8
10
src/window.c
10
src/window.c
|
@ -276,18 +276,20 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
|
||||||
// Remember window settings
|
// Remember window settings
|
||||||
window->width = width;
|
window->width = width;
|
||||||
window->height = height;
|
window->height = height;
|
||||||
window->resizable = wndconfig.resizable;
|
|
||||||
window->cursorMode = GLFW_CURSOR_NORMAL;
|
window->cursorMode = GLFW_CURSOR_NORMAL;
|
||||||
|
window->monitor = wndconfig.monitor;
|
||||||
window->monitor = wndconfig.monitor;
|
if (wndconfig.monitor)
|
||||||
if (window->monitor)
|
|
||||||
{
|
{
|
||||||
|
window->resizable = GL_TRUE;
|
||||||
|
|
||||||
window->videoMode.width = width;
|
window->videoMode.width = width;
|
||||||
window->videoMode.height = height;
|
window->videoMode.height = height;
|
||||||
window->videoMode.redBits = fbconfig.redBits;
|
window->videoMode.redBits = fbconfig.redBits;
|
||||||
window->videoMode.greenBits = fbconfig.greenBits;
|
window->videoMode.greenBits = fbconfig.greenBits;
|
||||||
window->videoMode.blueBits = fbconfig.blueBits;
|
window->videoMode.blueBits = fbconfig.blueBits;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
window->resizable = wndconfig.resizable;
|
||||||
|
|
||||||
// Save the currently current context so it can be restored later
|
// Save the currently current context so it can be restored later
|
||||||
previous = (_GLFWwindow*) glfwGetCurrentContext();
|
previous = (_GLFWwindow*) glfwGetCurrentContext();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user