Fix build error on macOS 10.6
* src/nsfns.m (compute_tip_xy): Cast NSRect to CGRect and NSPoint to CGPoint.
This commit is contained in:
parent
443f371636
commit
c503188f80
1 changed files with 1 additions and 1 deletions
|
@ -2753,7 +2753,7 @@ and GNUstep implementations ("distributor-specific release
|
|||
/* Find the screen that pt is on. */
|
||||
for (screen in [NSScreen screens])
|
||||
#ifdef NS_IMPL_COCOA
|
||||
if (CGRectContainsPoint ([screen frame], pt))
|
||||
if (CGRectContainsPoint ((CGRect)[screen frame], (CGPoint)pt))
|
||||
#else
|
||||
if (pt.x >= screen.frame.origin.x
|
||||
&& pt.x < screen.frame.origin.x + screen.frame.size.width
|
||||
|
|
Loading…
Add table
Reference in a new issue