Moved a few local variable declarations.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2012-03-14 09:51:22 +00:00
parent 7d0b5d05cb
commit da96b83903
1 changed files with 3 additions and 3 deletions

View File

@ -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;