summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2012-03-14 09:51:22 +0000
committerManolo Gouy <Manolo>2012-03-14 09:51:22 +0000
commitda96b83903d0cb72272b43ce714fd69db619c038 (patch)
tree3068de9d56fbdbe1afc143ded8817bc3d52e1f9e
parent7d0b5d05cb14b2a14b891e4957d3db30d451b0f1 (diff)
Moved a few local variable declarations.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-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;