Cocoa: Fix work area using NS screen coordinates

Related to #1322.
This commit is contained in:
Camilla Löwy
2019-03-05 17:41:32 +01:00
parent a43d1a4937
commit 4b20fb705b
3 changed files with 22 additions and 16 deletions

View File

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