Related to #842.
This commit is contained in:
Camilla Löwy
2017-02-06 15:03:50 +01:00
parent 72ac5badb0
commit 5a74b5008d
8 changed files with 24 additions and 15 deletions
+1 -1
View File
@@ -1096,7 +1096,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
if (!acquireMonitor(window))
return GLFW_FALSE;
if (wndconfig->centerCursor)
if (wndconfig->centerCursor)
centerCursor(window);
}
-2
View File
@@ -1038,9 +1038,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
return GLFW_FALSE;
if (wndconfig->centerCursor)
{
centerCursor(window);
}
}
return GLFW_TRUE;
+3 -3
View File
@@ -345,9 +345,9 @@ GLFWAPI void glfwWindowHint(int hint, int value)
case GLFW_COCOA_FRAME_AUTOSAVE:
_glfw.hints.window.ns.frame = value ? GLFW_TRUE : GLFW_FALSE;
break;
case GLFW_CENTER_CURSOR:
_glfw.hints.window.centerCursor = value ? GLFW_TRUE : GLFW_FALSE;
break;
case GLFW_CENTER_CURSOR:
_glfw.hints.window.centerCursor = value ? GLFW_TRUE : GLFW_FALSE;
break;
case GLFW_CLIENT_API:
_glfw.hints.context.client = value;
break;
+1 -3
View File
@@ -1597,10 +1597,8 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
if (!acquireMonitor(window))
return GLFW_FALSE;
if(wndconfig->centerCursor)
{
if (wndconfig->centerCursor)
centerCursor(window);
}
}
XFlush(_glfw.x11.display);