From 6a4ec13517ad1ca49ea904b26c83268f11b2aa06 Mon Sep 17 00:00:00 2001 From: rti Date: Sun, 13 Jun 2010 22:36:32 +0200 Subject: [PATCH] Changed: #947 fixed set mouse pos in fullscreen on non main monitor --- code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm b/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm index 212a7f077..106163f88 100644 --- a/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm +++ b/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm @@ -427,6 +427,10 @@ void setMousePos(float x, float y) // get the rect (position, size) of the window NSRect windowRect = [g_window frame]; + if([g_glview isInFullScreenMode]) + windowRect = [[g_window screen] frame]; + else + windowRect = [g_window frame]; // get the gl view's rect for height and width NSRect viewRect = [g_glview frame];