From 57e603e6bc6aded9e9009f72985bed3c9ebe380b Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 19 Oct 2015 14:41:24 +0000 Subject: More detailed comment. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index b7e5218c6..6f6f9e2c9 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4210,7 +4210,7 @@ unsigned char *Fl_X::bitmap_from_window_rect(Fl_Window *win, int x, int y, int w const uchar *start = [bitmap bitmapData]; // start of the bitmap data #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 if (fl_mac_os_version >= 100400 && ([bitmap bitmapFormat] & NSAlphaFirstBitmapFormat)) { - // bitmap is ARGB --> convert it to RGBA + // bitmap is ARGB --> convert it to RGBA (ARGB happens with Mac OS 10.11) // it is enough to offset reading by one byte because A is always 0xFF // so ARGBARGB becomes RGBARGBA as needed start++; -- cgit v1.2.3