(svn r25713) -Fix: use proper ObjC style to avoid problems if members are missing
This commit is contained in:
@@ -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 ];
|
||||||
|
Reference in New Issue
Block a user