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:
Jared Jones 2015-06-18 03:20:15 -05:00
parent 226f85efcb
commit 87681872fe

View File

@ -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)));
} }
} }