aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Third2017-05-29 17:01:44 +0100
committerAlan Third2017-05-29 17:03:30 +0100
commitc503188f8079ae73d95abd0bce0f53d104b03205 (patch)
tree7b756ab3e29395a7a06b7e5bcf8d8fd477eadd32 /src
parent443f37163634319a730133efe9e21933c23dc3c6 (diff)
downloademacs-c503188f8079ae73d95abd0bce0f53d104b03205.tar.gz
emacs-c503188f8079ae73d95abd0bce0f53d104b03205.zip
Fix build error on macOS 10.6
* src/nsfns.m (compute_tip_xy): Cast NSRect to CGRect and NSPoint to CGPoint.
Diffstat (limited to 'src')
-rw-r--r--src/nsfns.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsfns.m b/src/nsfns.m
index a69e44bb227..7bac2836fed 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -2753,7 +2753,7 @@ compute_tip_xy (struct frame *f,
2753 /* Find the screen that pt is on. */ 2753 /* Find the screen that pt is on. */
2754 for (screen in [NSScreen screens]) 2754 for (screen in [NSScreen screens])
2755#ifdef NS_IMPL_COCOA 2755#ifdef NS_IMPL_COCOA
2756 if (CGRectContainsPoint ([screen frame], pt)) 2756 if (CGRectContainsPoint ((CGRect)[screen frame], (CGPoint)pt))
2757#else 2757#else
2758 if (pt.x >= screen.frame.origin.x 2758 if (pt.x >= screen.frame.origin.x
2759 && pt.x < screen.frame.origin.x + screen.frame.size.width 2759 && pt.x < screen.frame.origin.x + screen.frame.size.width