From adef7d7cf68024f2acd7592b838dfff5cb32b461 Mon Sep 17 00:00:00 2001 From: rio Date: Mon, 4 Sep 2006 00:11:45 +0000 Subject: [PATCH] moved a declaration at the beginning of the method (gcc 2.9x ...) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23388 72102866-910b-0410-8b05-ffd578937521 --- Source/NSBitmapImageRep+JPEG.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSBitmapImageRep+JPEG.m b/Source/NSBitmapImageRep+JPEG.m index 954079f06..18c734d4a 100644 --- a/Source/NSBitmapImageRep+JPEG.m +++ b/Source/NSBitmapImageRep+JPEG.m @@ -504,6 +504,7 @@ nil. */ int sPP = [self samplesPerPixel]; int width = [self size].width; int height = [self size].height; + int row_stride = width * sPP; int quality = 90; NSNumber* qualityNumber = nil; NSString* colorSpace = nil; @@ -565,7 +566,6 @@ nil. */ jpeg_start_compress (&cinfo, TRUE); JSAMPROW row_pointer [1]; // pointer to a single row - int row_stride = width * sPP; while (cinfo.next_scanline < cinfo.image_height) {