mirror of
https://github.com/glfw/glfw.git
synced 2024-11-30 05:47:10 +00:00
Fixed use of wrong point type.
This commit is contained in:
parent
dd298ab908
commit
52ebc0db85
@ -1163,7 +1163,7 @@ void _glfwPlatformSetCursorPos(_GLFWwindow* window, int x, int y)
|
|||||||
{
|
{
|
||||||
if (window->mode == GLFW_FULLSCREEN)
|
if (window->mode == GLFW_FULLSCREEN)
|
||||||
{
|
{
|
||||||
NSPoint globalPoint = NSMakePoint(x, y);
|
CGPoint globalPoint = CGMakePoint(x, y);
|
||||||
CGDisplayMoveCursorToPoint(CGMainDisplayID(), globalPoint);
|
CGDisplayMoveCursorToPoint(CGMainDisplayID(), globalPoint);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user