Changed default cursor mode for fullscreen.

This commit is contained in:
Camilla Berglund
2013-04-10 01:57:43 +02:00
parent 8282a8fbe0
commit 159f9b9526
3 changed files with 3 additions and 9 deletions
-5
View File
@@ -256,11 +256,6 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height,
// Restore the previously current context (or NULL)
glfwMakeContextCurrent((GLFWwindow*) previous);
// The GLFW specification states that fullscreen windows have the cursor
// captured by default
if (wndconfig.monitor)
glfwSetInputMode((GLFWwindow*) window, GLFW_CURSOR_MODE, GLFW_CURSOR_CAPTURED);
if (wndconfig.monitor == NULL && wndconfig.visible)
glfwShowWindow((GLFWwindow*) window);