diff options
| author | Alan Third | 2017-05-29 17:01:44 +0100 |
|---|---|---|
| committer | Alan Third | 2017-05-29 17:03:30 +0100 |
| commit | c503188f8079ae73d95abd0bce0f53d104b03205 (patch) | |
| tree | 7b756ab3e29395a7a06b7e5bcf8d8fd477eadd32 /src | |
| parent | 443f37163634319a730133efe9e21933c23dc3c6 (diff) | |
| download | emacs-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.m | 2 |
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 |