Merge pull request #2172 from jrimclean/development

Fixed compilation on MacOS X
This commit is contained in:
Juan Linietsky 2015-06-23 20:59:30 -03:00
commit 26a710b4b8

View file

@ -1113,7 +1113,9 @@ void OS_OSX::warp_mouse_pos(const Point2& p_to) {
NSPoint localPoint = { p_to.x, p_to.y };
NSPoint pointInWindow = [window_view convertPoint:localPoint toView:nil];
NSPoint pointOnScreen = [[window_view window] convertRectToScreen:(NSRect){.origin=pointInWindow}].origin;
NSRect pointInWindowRect;
pointInWindowRect.origin = pointInWindow;
NSPoint pointOnScreen = [[window_view window] convertRectToScreen:pointInWindowRect].origin;
//point in scren coords
CGPoint lMouseWarpPos = { pointOnScreen.x, pointOnScreen.y};