summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-11-18 15:17:12 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-11-19 15:59:48 +0100
commit3ec51f0b80652d49cade9c5bb46e20c88a88c05c (patch)
tree6aef8a9c4401c29a2239bb0583923a21c0c635cb /src
parentf56d43c9f6ffe08a0d62668fec6120d9c800ed2e (diff)
Remove unnecessary function call when macOS ≥ 10.6
Diffstat (limited to 'src')
-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 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);