diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2026-02-02 12:41:03 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2026-02-02 12:41:03 +0100 |
| commit | 3f56b8091d8e48c9d5bf82c9459dac61c49df9c6 (patch) | |
| tree | d82286396ea981b40e222ff74a9bce90ee4aa07b /src/drivers/Cocoa | |
| parent | 26387c3538c5a3607bfa553a866800878d548317 (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')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H | 1 | ||||
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H index 4fa1a7491..358523dbd 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H +++ b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H @@ -96,7 +96,6 @@ public: CGContextRef gc; // graphics context NSCursor *cursor; static void q_release_context(Fl_Cocoa_Window_Driver *x = 0); // free all resources associated with gc - static void clip_to_rounded_corners(CGContextRef gc, int w, int h); static CGImageRef capture_decorated_window_10_5(NSWindow *nswin); void set_key_window(); bool mapped_to_retina(); // is window mapped to retina display? 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; } |
