MacOS: improve drawing of rounded corners of window titlebar
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
f4f4030cc2
commit
cfdc38f760
@ -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) {
|
||||
const CGFloat radius = 5;
|
||||
const CGFloat radius = 7.5;
|
||||
CGContextMoveToPoint(gc, 0, 0);
|
||||
CGContextAddLineToPoint(gc, 0, h - radius);
|
||||
CGContextAddArcToPoint(gc, 0, h, radius, h, radius);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user