diff options
| author | Manolo Gouy <Manolo> | 2015-10-19 14:41:24 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-10-19 14:41:24 +0000 |
| commit | 57e603e6bc6aded9e9009f72985bed3c9ebe380b (patch) | |
| tree | 12a72fcea295fa784e53376c8583607ccf80b7e2 /src | |
| parent | 07e37d23d5fca19b40e4d42b6d15bc5d9564065d (diff) | |
More detailed comment.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
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++; |
