浏览代码

Fixed window positioning on OS X.

Camilla Berglund 12 年之前
父节点
当前提交
c4d856bcb2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/cocoa_window.m

+ 1 - 1
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)