mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
(svn r25713) -Fix: use proper ObjC style to avoid problems if members are missing
This commit is contained in:
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
Block a user