Other OSX fullscreen attempt

This commit is contained in:
Marianne Gagnon
2014-11-20 18:21:18 -05:00
parent d776bee39a
commit 954dba0873

View File

@@ -1291,6 +1291,9 @@ void CIrrDeviceMacOSX::storeMouseLocation()
x = (int)point.x;
y = (int)point.y;
if (CursorControl == NULL)
return;
const core::position2di& curr = ((CCursorControl *)CursorControl)->getPosition();
if (curr.X != x || curr.Y != y)
{
@@ -1303,8 +1306,9 @@ void CIrrDeviceMacOSX::storeMouseLocation()
postEventFromUser(ievent);
}
}
((CCursorControl *)CursorControl)->updateInternalCursorPosition(x,y);
if (CursorControl != NULL)
((CCursorControl *)CursorControl)->updateInternalCursorPosition(x,y);
}