mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +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;
|
NSPoint pt;
|
||||||
|
|
||||||
if (event.window == nil) {
|
if ( [ event window ] == nil) {
|
||||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
|
||||||
if ([ this->cocoaview respondsToSelector:@selector(convertRectFromScreen:) ]) {
|
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 ];
|
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