summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-11-30 16:14:13 +0000
committerManolo Gouy <Manolo>2017-11-30 16:14:13 +0000
commita8fe10cf88e757f59057fdaf51637d26ab3019aa (patch)
treeed147eec7b4190a92d24c513f4ae73f3f24d9355 /src/Fl_cocoa.mm
parent08f72d626c9e506cf05fadd2e037e72e97bb95cf (diff)
MacOS: use rounded bottom corners when drawing windows
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12574 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_cocoa.mm')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 4479198cc..cb0cb1cea 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -4287,7 +4287,7 @@ int Fl_Cocoa_Window_Driver::decorated_h()
}
// clip the graphics context to rounded corners
-static void clip_to_rounded_corners(CGContextRef gc, int w, int h) {
+void Fl_Cocoa_Window_Driver::clip_to_rounded_corners(CGContextRef gc, int w, int h) {
const CGFloat radius = 7.5;
CGContextMoveToPoint(gc, 0, 0);
CGContextAddLineToPoint(gc, 0, h - radius);