summaryrefslogtreecommitdiff
path: root/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2026-02-02 12:41:03 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2026-02-02 12:41:03 +0100
commit3f56b8091d8e48c9d5bf82c9459dac61c49df9c6 (patch)
treed82286396ea981b40e222ff74a9bce90ee4aa07b /src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx
parent26387c3538c5a3607bfa553a866800878d548317 (diff)
macOS: remove code present only to support macOS versions 10.6 and earlier.
It's possible to build and run FLTK 1.5 with its use of C++11 for macOS 10.7 and SDK 10.7. This commit makes 10.7 the required minimal version of macOS to build and run FLTK 1.5.
Diffstat (limited to 'src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx')
-rw-r--r--src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx
index ac99ab70b..f8fce7010 100644
--- a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx
+++ b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx
@@ -277,19 +277,6 @@ void Fl_Cocoa_Window_Driver::through_resize(bool b) {
else window_flags_ &= ~through_resize_mask;
}
-
-// clip the graphics context to rounded corners
-void Fl_Cocoa_Window_Driver::clip_to_rounded_corners(CGContextRef gc, int w, int h) {
- const CGFloat radius = 7.5;
- CGContextMoveToPoint(gc, 0, 0);
- CGContextAddLineToPoint(gc, 0, h - radius);
- CGContextAddArcToPoint(gc, 0, h, radius, h, radius);
- CGContextAddLineToPoint(gc, w - radius, h);
- CGContextAddArcToPoint(gc, w, h, w, h - radius, radius);
- CGContextAddLineToPoint(gc, w, 0);
- CGContextClip(gc);
-}
-
const Fl_Image* Fl_Cocoa_Window_Driver::shape() {
return shape_data_ ? shape_data_->shape_ : NULL;
}