summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorgreay <vrihl@sinisterandroid.com>2015-02-17 19:19:29 -0800
committergreay <vrihl@sinisterandroid.com>2015-02-17 19:19:29 -0800
commitef565b977852bbcd4eb6fc5ed31087422fea632c (patch)
tree75e0aed35b8a61b39c5eaede599452a0280731dc /platform
parent2bea642583efeb68886e71950384f297f2d7ee12 (diff)
fix for “no viable conversion from 'NSPoint' (aka '_NSPoint') to 'CGPoint'” build error on OS X
Diffstat (limited to 'platform')
-rw-r--r--platform/osx/os_osx.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm
index af2552496b..1c0d1f9991 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};