diff options
| -rw-r--r-- | src/fl_draw_image_mac.cxx | 4 | ||||
| -rw-r--r-- | test/unittest_images.cxx | 8 |
2 files changed, 2 insertions, 10 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) { diff --git a/test/unittest_images.cxx b/test/unittest_images.cxx index 25dfdd2cf..f9f09a09f 100644 --- a/test/unittest_images.cxx +++ b/test/unittest_images.cxx @@ -86,11 +86,7 @@ public: fl_color(FL_BLACK); fl_rectf(xx, yy, 130, 130); fl_color(FL_WHITE); fl_rectf(xx+1, yy+1, 64, 64); fl_color(FL_WHITE); fl_rectf(xx+65, yy+65, 64, 64); -#ifdef __APPLE__ - fl_draw_image(img_rgba, xx+1, yy+1, 128, 128, 4); // Apple: okay w/alpha -#else i_rgba->draw(xx+1,yy+1); // only Fl_RGB_Image->draw() works with alpha -#endif fl_color(FL_BLACK); fl_draw("RGBA", xx+134, yy+64); // top right: Gray @@ -106,11 +102,7 @@ public: fl_color(FL_BLACK); fl_rectf(xx, yy, 130, 130); fl_color(FL_WHITE); fl_rectf(xx+1, yy+1, 64, 64); fl_color(FL_WHITE); fl_rectf(xx+65, yy+65, 64, 64); -#ifdef __APPLE__ - fl_draw_image(img_gray_a, xx+1, yy+1, 128, 128, 2); // Apple: okay w/alpha -#else i_ga->draw(xx+1,yy+1); // only Fl_RGB_Image->draw() works with alpha -#endif fl_color(FL_BLACK); fl_draw("Gray+Alpha", xx+134, yy+64); } }; |
