Sfoglia il codice sorgente

Fixed window positioning on OS X.

Camilla Berglund 12 anni fa
parent
commit
c4d856bcb2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)