mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Changed cursor pos to double.
This commit is contained in:
+2
-2
@@ -1049,9 +1049,9 @@ void _glfwPlatformWaitEvents(void)
|
||||
_glfwPlatformPollEvents();
|
||||
}
|
||||
|
||||
void _glfwPlatformSetCursorPos(_GLFWwindow* window, int xpos, int ypos)
|
||||
void _glfwPlatformSetCursorPos(_GLFWwindow* window, double xpos, double ypos)
|
||||
{
|
||||
POINT pos = { xpos, ypos };
|
||||
POINT pos = { (int) xpos, (int) ypos };
|
||||
ClientToScreen(window->win32.handle, &pos);
|
||||
SetCursorPos(pos.x, pos.y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user