mirror of https://github.com/OpenTTD/OpenTTD
(svn r25713) -Fix: use proper ObjC style to avoid problems if members are missing
parent
8222e18586
commit
fd16b0c65c
|
@ -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 ];
|
||||
|
|
Loading…
Reference in New Issue