From 0010349e05055b7ab7e1a8da39e1f480e1b48a3d Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:05:55 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20more=20code=20unused=20since=20FLTK=20?= =?UTF-8?q?requires=20macOS=20=E2=89=A5=2010.7=20-=20again?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Cocoa/Fl_Cocoa_Gl_Window_Driver.mm | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm b/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm index a897f7843..708137d4b 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm +++ b/src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm @@ -409,28 +409,6 @@ void Fl_Cocoa_Gl_Window_Driver::gl_start() { [(NSOpenGLContext*)gl_start_context update]; } -// convert BGRA to RGB and also exchange top and bottom -static uchar *convert_BGRA_to_RGB(uchar *baseAddress, int w, int h, int mByteWidth) -{ - uchar *newimg = new uchar[3*w*h]; - uchar *to = newimg; - for (int i = h-1; i >= 0; i--) { - uchar *from = baseAddress + i * mByteWidth; - for (int j = 0; j < w; j++, from += 4) { -#if defined(__ppc__) && __ppc__ - memcpy(to, from + 1, 3); - to += 3; -#else - *(to++) = *(from+2); - *(to++) = *(from+1); - *(to++) = *from; -#endif - } - } - delete[] baseAddress; - return newimg; -} - static Fl_RGB_Image *cgimage_to_rgb4(CGImageRef img) { int w = (int)CGImageGetWidth(img);