diff options
| author | Manolo Gouy <Manolo> | 2017-11-09 15:27:26 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-11-09 15:27:26 +0000 |
| commit | ff1e508e5d3462c2da910fedfa442b0f2b9b3617 (patch) | |
| tree | 3c2ebb3dd1c9069c7baf41de317ff2043ab74ae8 /src | |
| parent | 9aaf6df90c52755ae65a9f17a60334cb6bcf76ba (diff) | |
MacOS: improve drawing of the rounded corners of window titlebars.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index dfdbff8e1..b589c854d 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4335,7 +4335,7 @@ void Fl_Cocoa_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image*& top, uchar *rgba = new uchar[4 * w() * htop * 4]; CGContextRef auxgc = CGBitmapContextCreate(rgba, 2 * w(), 2 * htop, 8, 8 * w(), cspace, kCGImageAlphaPremultipliedLast); CGColorSpaceRelease(cspace); - memset(rgba, 0xff, 4 * w() * htop * 4); // initialize to opaque white + CGContextClearRect(auxgc, CGRectMake(0,0,2*w(),2*htop)); CGContextScaleCTM(auxgc, 2, 2); if (layer) { Fl_Cocoa_Window_Driver::draw_layer_to_context(layer, auxgc, w(), htop); |
