|
|
commit 3ec51f0b80652d49cade9c5bb46e20c88a88c05c
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Wed Nov 18 15:17:12 2020 +0100
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Thu Nov 19 15:59:48 2020 +0100
Remove unnecessary function call when macOS â?¥ 10.6
src/Fl_cocoa.mm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git src/Fl_cocoa.mm src/Fl_cocoa.mm
index 8f9f172..6fe035c 100644
--- src/Fl_cocoa.mm
+++ 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);
[ Direct Link to Message ] | |
|
| |