diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-11-18 15:17:12 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-11-19 15:59:48 +0100 |
| commit | 3ec51f0b80652d49cade9c5bb46e20c88a88c05c (patch) | |
| tree | 6aef8a9c4401c29a2239bb0583923a21c0c635cb | |
| parent | f56d43c9f6ffe08a0d62668fec6120d9c800ed2e (diff) | |
Remove unnecessary function call when macOS ≥ 10.6
| -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 8f9f172e8..6fe035cfc 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4386,7 +4386,7 @@ void Fl_Cocoa_Window_Driver::draw_titlebar_to_context(CGContextRef gc, int w, in } if (img) { CGContextSaveGState(gc); - clip_to_rounded_corners(gc, w, h); + if (fl_mac_os_version < 100600) clip_to_rounded_corners(gc, w, h); CGContextDrawImage(gc, CGRectMake(0, 0, w, h), img); CGImageRelease(img); CGContextRestoreGState(gc); |
