Correct the Y position of Display.setLocation(x, y) on OS X
This commit is contained in:
parent
ea1ee59996
commit
310f0085cf
|
@ -606,7 +606,7 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_MacOSXDisplay_nCreateWindow(JNIE
|
||||||
peer_info->window_info = window_info;
|
peer_info->window_info = window_info;
|
||||||
peer_info->isWindowed = true;
|
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
|
// Cache the necessary info for window-close callbacks into the JVM
|
||||||
if (window_info->jdisplay == NULL) {
|
if (window_info->jdisplay == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue