mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 21:30:57 +00:00
Removed Deprecated convertBaseToScreen
OS X 10.7 deprecated convertBaseToScreen, however it is not up until the OS X 10.11 SDK that the compiler sets a warning.
This commit is contained in:
parent
226f85efcb
commit
87681872fe
@ -1165,10 +1165,10 @@ void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
const NSPoint localPoint = NSMakePoint(x, contentRect.size.height - y - 1);
|
const NSPoint localPoint = NSMakePoint(x, contentRect.size.height - y - 1);
|
||||||
const NSPoint globalPoint = [window->ns.object convertBaseToScreen:localPoint];
|
const NSRect globalPoint = [window->ns.object convertRectToScreen:NSMakeRect(localPoint.x, localPoint.y, 0, 0)];
|
||||||
|
|
||||||
CGWarpMouseCursorPosition(CGPointMake(globalPoint.x,
|
CGWarpMouseCursorPosition(CGPointMake(globalPoint.origin.x,
|
||||||
transformY(globalPoint.y)));
|
transformY(globalPoint.origin.y)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user