From ef565b977852bbcd4eb6fc5ed31087422fea632c Mon Sep 17 00:00:00 2001 From: greay Date: Tue, 17 Feb 2015 19:19:29 -0800 Subject: [PATCH] =?UTF-8?q?fix=20for=20=E2=80=9Cno=20viable=20conversion?= =?UTF-8?q?=20from=20'NSPoint'=20(aka=20'=5FNSPoint')=20to=20'CGPoint'?= =?UTF-8?q?=E2=80=9D=20build=20error=20on=20OS=20X?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/osx/os_osx.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index af2552496be..1c0d1f9991b 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1100,7 +1100,7 @@ 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:(CGRect){.origin=pointInWindow}]; + NSPoint pointOnScreen = [[window_view window] convertRectToScreen:(NSRect){.origin=pointInWindow}].origin; //point in scren coords CGPoint lMouseWarpPos = { pointOnScreen.x, pointOnScreen.y};