From fd16b0c65c1b65908f20527c010a83b6e7e4cf3b Mon Sep 17 00:00:00 2001 From: fonsinchen Date: Sat, 10 Aug 2013 12:47:22 +0000 Subject: (svn r25713) -Fix: use proper ObjC style to avoid problems if members are missing --- src/video/cocoa/wnd_quartz.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ]; -- cgit v1.2.3-54-g00ecf