Correct the Y position of Display.setLocation(x, y) on OS X

This commit is contained in:
kappaOne 2013-05-09 00:30:38 +01:00
parent ea1ee59996
commit 310f0085cf
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_MacOSXDisplay_nCreateWindow(JNIE
peer_info->window_info = window_info;
peer_info->isWindowed = true;
window_info->display_rect = NSMakeRect(x, y, width, height);
window_info->display_rect = NSMakeRect(x, [[NSScreen mainScreen] frame].size.height - y - height, width, height);
// Cache the necessary info for window-close callbacks into the JVM
if (window_info->jdisplay == NULL) {