summaryrefslogtreecommitdiff
path: root/frontends/cocoa/ArrowBox.m
diff options
context:
space:
mode:
authorSven Weidauer <sven@5sw.de>2017-06-05 10:47:34 +0200
committerSven Weidauer <sven@5sw.de>2017-06-05 10:51:19 +0200
commit3ee40a10b123c36be3e29602767840a7a71aaafa (patch)
tree64123d0bf6a6cf5a5a4c1fd8349756db68e09483 /frontends/cocoa/ArrowBox.m
parentce4e059ea67cee7f35b4b810a4387f343fa74650 (diff)
downloadnetsurf-3ee40a10b123c36be3e29602767840a7a71aaafa.tar.gz
netsurf-3ee40a10b123c36be3e29602767840a7a71aaafa.tar.bz2
Fix up cocoa frontend.
- Convert to ARC - Fix crash due to endless responder chain recursion - Update makefile to find openssl installed via home-brew - Fix most compiler warnings
Diffstat (limited to 'frontends/cocoa/ArrowBox.m')
-rw-r--r--frontends/cocoa/ArrowBox.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/cocoa/ArrowBox.m b/frontends/cocoa/ArrowBox.m
index 6605fcca9..3eb7411a2 100644
--- a/frontends/cocoa/ArrowBox.m
+++ b/frontends/cocoa/ArrowBox.m
@@ -85,12 +85,12 @@
NSBezierPath *path = [NSBezierPath bezierPath];
- NSRect bounds = [self convertRectToBase: NSInsetRect( [self bounds], 2, 2 )];
+ NSRect bounds = [self.window convertRectToScreen: NSInsetRect( [self bounds], 2, 2 )];
bounds.origin.x = floor( bounds.origin.x );
bounds.origin.y = floor( bounds.origin.y );
bounds.size.width = floor( bounds.size.width );
bounds.size.height = floor( bounds.size.height );
- bounds = [self convertRectFromBase: bounds];
+ bounds = [self.window convertRectFromScreen: bounds];
const CGFloat right = bounds.size.width - arrowSize;
const CGFloat top = bounds.size.height - arrowSize;