diff options
| author | Manolo Gouy <Manolo> | 2011-04-12 11:38:43 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-04-12 11:38:43 +0000 |
| commit | 8b026342ddeffa57a19fd21bfa13f163a5bccecb (patch) | |
| tree | f82bf5293ee64f7f71e1784593fac31b1afc1b3d /src/fl_draw_image_mac.cxx | |
| parent | 38a3c21ffd80c62d5f1f71a4f93c3c8873137fdf (diff) | |
Following STR #2583, the behaviour of fl_draw_image() with d = 4 on Mac OS is here
made consistent with other platforms, that is, the 4th byte of each pixel is ignored
instead of treated as transparency data.
In the future, the fl_draw_image() signature may be extended with another argument
that would describe if and how transparency information is available.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_draw_image_mac.cxx')
| -rw-r--r-- | src/fl_draw_image_mac.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_draw_image_mac.cxx b/src/fl_draw_image_mac.cxx index 32b365b17..cd370a580 100644 --- a/src/fl_draw_image_mac.cxx +++ b/src/fl_draw_image_mac.cxx @@ -92,8 +92,8 @@ static void innards(const uchar *buf, int X, int Y, int W, int H, tmpBuf ? dataReleaseCB : NULL ); CGImageRef img = CGImageCreate( W, H, 8, 8*delta, linedelta, - //lut, delta&1?kCGImageAlphaNone:kCGImageAlphaNoneSkipLast, - lut, delta&1?kCGImageAlphaNone:kCGImageAlphaLast, + lut, delta&1?kCGImageAlphaNone:kCGImageAlphaNoneSkipLast, + //lut, delta&1?kCGImageAlphaNone:kCGImageAlphaLast, src, 0L, false, kCGRenderingIntentDefault); // draw the image into the destination context if (img) { |
