From da96b83903d0cb72272b43ce714fd69db619c038 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 14 Mar 2012 09:51:22 +0000 Subject: Moved a few local variable declarations. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Image.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3