瀏覽代碼

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)
     if (xpos)
         *xpos = contentRect.origin.x;
         *xpos = contentRect.origin.x;
     if (ypos)
     if (ypos)
-        *ypos = contentRect.origin.y;
+        *ypos = transformY(contentRect.origin.y + contentRect.size.height);
 }
 }
 
 
 void _glfwPlatformSetWindowPos(_GLFWwindow* window, int x, int y)
 void _glfwPlatformSetWindowPos(_GLFWwindow* window, int x, int y)