summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Image.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Image.cxx b/src/Fl_Image.cxx
index 4a3764a18..267ee4167 100644
--- a/src/Fl_Image.cxx
+++ b/src/Fl_Image.cxx
@@ -461,11 +461,11 @@ void Fl_Quartz_Graphics_Driver::draw(Fl_RGB_Image *img, int XP, int YP, int WP,
if (start(img, XP, YP, WP, HP, img->w(), img->h(), cx, cy, X, Y, W, H)) {
return;
}
- CGDataProviderReleaseDataCallback release_cb = NULL;
- const uchar* img_bytes = img->array;
- int ld = img->ld();
if (!img->id_) {
CGColorSpaceRef lut = 0;
+ CGDataProviderReleaseDataCallback release_cb = NULL;
+ const uchar* img_bytes = img->array;
+ int ld = img->ld();
if (Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) {
// when printing, duplicate the image data so it can be deleted later, at page end
release_cb = imgProviderReleaseData;