mirror of
https://github.com/glfw/glfw.git
synced 2025-04-11 07:47:04 +00:00
Fix default value of GLFW_CENTER_CURSOR
Regression introduced by 72ac5badb0
.
Fixes #1105.
This commit is contained in:
parent
fcedb0be32
commit
a1154247fa
1 changed files with 6 additions and 5 deletions
11
src/window.c
11
src/window.c
|
@ -246,11 +246,12 @@ void glfwDefaultWindowHints(void)
|
|||
|
||||
// The default is a focused, visible, resizable window with decorations
|
||||
memset(&_glfw.hints.window, 0, sizeof(_glfw.hints.window));
|
||||
_glfw.hints.window.resizable = GLFW_TRUE;
|
||||
_glfw.hints.window.visible = GLFW_TRUE;
|
||||
_glfw.hints.window.decorated = GLFW_TRUE;
|
||||
_glfw.hints.window.focused = GLFW_TRUE;
|
||||
_glfw.hints.window.autoIconify = GLFW_TRUE;
|
||||
_glfw.hints.window.resizable = GLFW_TRUE;
|
||||
_glfw.hints.window.visible = GLFW_TRUE;
|
||||
_glfw.hints.window.decorated = GLFW_TRUE;
|
||||
_glfw.hints.window.focused = GLFW_TRUE;
|
||||
_glfw.hints.window.autoIconify = GLFW_TRUE;
|
||||
_glfw.hints.window.centerCursor = GLFW_TRUE;
|
||||
|
||||
// The default is 24 bits of color, 24 bits of depth and 8 bits of stencil,
|
||||
// double buffered
|
||||
|
|
Loading…
Add table
Reference in a new issue