mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-21 08:28:44 +00:00
Changed: #947 fixed set mouse pos in fullscreen on non main monitor
This commit is contained in:
parent
3d54c720ad
commit
6a4ec13517
1 changed files with 4 additions and 0 deletions
|
@ -427,6 +427,10 @@ void setMousePos(float x, float y)
|
||||||
|
|
||||||
// get the rect (position, size) of the window
|
// get the rect (position, size) of the window
|
||||||
NSRect windowRect = [g_window frame];
|
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
|
// get the gl view's rect for height and width
|
||||||
NSRect viewRect = [g_glview frame];
|
NSRect viewRect = [g_glview frame];
|
||||||
|
|
Loading…
Reference in a new issue