This commit is contained in:
Nibe 2013-07-07 13:32:53 -07:00
commit 80692b1c2c

View File

@ -55,7 +55,12 @@ static void setCursorMode(_GLFWwindow* window, int newMode)
if (window == _glfw.focusedWindow)
{
if (oldMode == GLFW_CURSOR_DISABLED)
{
window->cursorPosX = _glfw.cursorPosX;
window->cursorPosY = _glfw.cursorPosY;
_glfwPlatformSetCursorPos(window, _glfw.cursorPosX, _glfw.cursorPosY);
}
else if (newMode == GLFW_CURSOR_DISABLED)
{
int width, height;