diff options
author | Michael Lutz <michi@icosahedron.de> | 2018-04-30 22:32:23 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2018-04-30 23:57:28 +0200 |
commit | bb5584c835a40e287ea7d307f83506e266ccb01a (patch) | |
tree | 7dac90781c54f6943507ec4580b49413296981d0 /src/video | |
parent | cfb8092397709fe2276d8a5c5386c334b0a9199e (diff) | |
download | openttd-bb5584c835a40e287ea7d307f83506e266ccb01a.tar.xz |
Fix 74b7f0a: [OSX] Mouse cursor getting occasionally stuck.
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/cocoa/wnd_quartz.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm index d42749bac..7bec27824 100644 --- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -544,7 +544,7 @@ NSPoint WindowQuartzSubdriver::GetMouseLocation(NSEvent *event) if ( [ event window ] == nil) { #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 - if ([ this->cocoaview respondsToSelector:@selector(convertRectFromScreen:) ]) { + if ([ [ this->cocoaview window ] respondsToSelector:@selector(convertRectFromScreen:) ]) { pt = [ this->cocoaview convertPoint:[ [ this->cocoaview window ] convertRectFromScreen:NSMakeRect([ event locationInWindow ].x, [ event locationInWindow ].y, 0, 0) ].origin fromView:nil ]; } else |