Commit c503188f authored by Alan Third's avatar Alan Third
Browse files

Fix build error on macOS 10.6

* src/nsfns.m (compute_tip_xy): Cast NSRect to CGRect and NSPoint to
CGPoint.
parent 443f3716
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment