mirror of
https://github.com/glfw/glfw.git
synced 2025-07-29 11:00:04 +00:00
Very small change.
This commit is contained in:
parent
92adb6d266
commit
16f036bb53
@ -64,7 +64,7 @@ static void setCursorMode(_GLFWwindow* window, int newMode)
|
|||||||
_glfw.cursorPosY = window->cursorPosY;
|
_glfw.cursorPosY = window->cursorPosY;
|
||||||
|
|
||||||
_glfwPlatformGetWindowSize(window, &width, &height);
|
_glfwPlatformGetWindowSize(window, &width, &height);
|
||||||
_glfwPlatformSetCursorPos(window, width / 2.0, height / 2.0);
|
_glfwPlatformSetCursorPos(window, width * 0.5, height * 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
_glfwPlatformSetCursorMode(window, newMode);
|
_glfwPlatformSetCursorMode(window, newMode);
|
||||||
|
Loading…
Reference in New Issue
Block a user