diff options
author | Sven Gothel <[email protected]> | 2011-10-12 11:09:35 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-12 11:09:35 +0200 |
commit | 1d417866d42286bdcd367bb7c0e8798e86e46060 (patch) | |
tree | 8151175de4889885e9bfebcb94dabec7fd15d47c | |
parent | 3fb816be31a3a3ed2d05a4352bc46f5fdf7951fb (diff) |
NEWT/OSX MacWindow: Use screen of window
-rw-r--r-- | src/newt/native/MacWindow.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newt/native/MacWindow.m b/src/newt/native/MacWindow.m index f480103f2..4e4dc3173 100644 --- a/src/newt/native/MacWindow.m +++ b/src/newt/native/MacWindow.m @@ -59,7 +59,7 @@ static NSString* jstringToNSString(JNIEnv* env, jstring jstr) static void setFrameTopLeftPoint(NSWindow* pWin, NSWindow* mWin, jint x, jint y, jint totalHeight) { - NSScreen* screen = [NSScreen mainScreen]; + NSScreen* screen = [mWin screen]; NSRect screenTotal = [screen frame]; NSPoint pS = NSMakePoint(screenTotal.origin.x + x, screenTotal.origin.y + screenTotal.size.height - y - totalHeight); |