summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-08-10 12:47:22 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-08-10 12:47:22 +0000
commitfd16b0c65c1b65908f20527c010a83b6e7e4cf3b (patch)
tree07d947e3e1da50f40017e2318466aa0437c70c66 /src/video
parent8222e18586c2ae997431f87ee79a0cc9a7ba44aa (diff)
downloadopenttd-fd16b0c65c1b65908f20527c010a83b6e7e4cf3b.tar.xz
(svn r25713) -Fix: use proper ObjC style to avoid problems if members are missing
Diffstat (limited to 'src/video')
-rw-r--r--src/video/cocoa/wnd_quartz.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm
index 074d608e2..3f1223eb5 100644
--- a/src/video/cocoa/wnd_quartz.mm
+++ b/src/video/cocoa/wnd_quartz.mm
@@ -523,7 +523,7 @@ NSPoint WindowQuartzSubdriver::GetMouseLocation(NSEvent *event)
{
NSPoint pt;
- if (event.window == nil) {
+ if ( [ event window ] == nil) {
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
if ([ this->cocoaview respondsToSelector:@selector(convertRectFromScreen:) ]) {
pt = [ this->cocoaview convertPoint:[ [ this->cocoaview window ] convertRectFromScreen:NSMakeRect([ event locationInWindow ].x, [ event locationInWindow ].y, 0, 0) ].origin fromView:nil ];