From 3f56b8091d8e48c9d5bf82c9459dac61c49df9c6 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 2 Feb 2026 12:41:03 +0100 Subject: 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. --- src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H | 1 - src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx | 13 ------------- 2 files changed, 14 deletions(-) (limited to 'src/drivers') 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; } -- cgit v1.2.3