From c4d856bcb2d1daed3ad9bf958b8a8f87ca5c6e44 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 22 May 2013 21:37:41 +0200 Subject: [PATCH] Fixed window positioning on OS X. --- src/cocoa_window.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index ef423bff..fcc3c267 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -863,7 +863,7 @@ void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos) if (xpos) *xpos = contentRect.origin.x; if (ypos) - *ypos = contentRect.origin.y; + *ypos = transformY(contentRect.origin.y + contentRect.size.height); } void _glfwPlatformSetWindowPos(_GLFWwindow* window, int x, int y)