Cocoa: Fix coordinate transformations

From upstream: 3c3981a4f0
This commit is contained in:
Kovid Goyal
2019-04-18 10:12:41 +05:30
parent 5c4462281e
commit b3f1acd400
2 changed files with 16 additions and 15 deletions

View File

@@ -477,7 +477,7 @@ void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos
if (xpos)
*xpos = frameRect.origin.x;
if (ypos)
*ypos = _glfwTransformYNS(frameRect.origin.y + frameRect.size.height);
*ypos = _glfwTransformYNS(frameRect.origin.y + frameRect.size.height - 1);
if (width)
*width = frameRect.size.width;
if (height)