Fixed window positioning on OS X.

This commit is contained in:
Camilla Berglund 2013-05-22 21:37:41 +02:00
parent 0b5de6dd28
commit c4d856bcb2

View File

@ -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)