Commit 760b5127 authored by teella's avatar teella

full screen mouse fix for OSX


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1324 dfc29bdd-3216-0410-991c-e03cc46cb475
parent f524ab2b
...@@ -586,6 +586,7 @@ void CIrrDeviceMacOSX::storeMouseLocation() ...@@ -586,6 +586,7 @@ void CIrrDeviceMacOSX::storeMouseLocation()
{ {
x = (int)p.x; x = (int)p.x;
y = (int)p.y; y = (int)p.y;
y -= (_screenHeight - _height);
} }
((CCursorControl *)CursorControl)->updateInternalCursorPosition(x,y); ((CCursorControl *)CursorControl)->updateInternalCursorPosition(x,y);
...@@ -606,7 +607,7 @@ void CIrrDeviceMacOSX::setMouseLocation(int x,int y) ...@@ -606,7 +607,7 @@ void CIrrDeviceMacOSX::setMouseLocation(int x,int y)
else else
{ {
p.x = (float) x; p.x = (float) x;
p.y = (float) y; p.y = (float) y + (_screenHeight - _height);
} }
c.x = p.x; c.x = p.x;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment