|
|
@ -1168,7 +1168,7 @@ void _glfwPlatformSetMouseCursorPos(_GLFWwindow* window, int x, int y) |
|
|
|
// calculating the maximum y coordinate of all screens, since Cocoa's |
|
|
|
// calculating the maximum y coordinate of all screens, since Cocoa's |
|
|
|
// "global coordinates" are upside down from CG's... |
|
|
|
// "global coordinates" are upside down from CG's... |
|
|
|
|
|
|
|
|
|
|
|
NSPoint localPoint = NSMakePoint(x, y); |
|
|
|
NSPoint localPoint = NSMakePoint(x, window->height - y); |
|
|
|
NSPoint globalPoint = [window->NS.object convertBaseToScreen:localPoint]; |
|
|
|
NSPoint globalPoint = [window->NS.object convertBaseToScreen:localPoint]; |
|
|
|
CGPoint mainScreenOrigin = CGDisplayBounds(CGMainDisplayID()).origin; |
|
|
|
CGPoint mainScreenOrigin = CGDisplayBounds(CGMainDisplayID()).origin; |
|
|
|
double mainScreenHeight = CGDisplayBounds(CGMainDisplayID()).size.height; |
|
|
|
double mainScreenHeight = CGDisplayBounds(CGMainDisplayID()).size.height; |
|
|
|