From 7867807a8471af734820fbbaf6d3dbeee4add9eb Mon Sep 17 00:00:00 2001 From: Michael Vrhel Date: Mon, 4 Nov 2013 11:10:34 -0800 Subject: Make sure declarations come first. This would not compile with default windows settings. --- source/fitz/pixmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/fitz/pixmap.c') diff --git a/source/fitz/pixmap.c b/source/fitz/pixmap.c index a130a228..a56fdbd9 100644 --- a/source/fitz/pixmap.c +++ b/source/fitz/pixmap.c @@ -145,9 +145,10 @@ fz_clear_pixmap_with_value(fz_context *ctx, fz_pixmap *pix, int value) /* CMYK needs special handling (and potentially any other subtractive colorspaces) */ if (pix->colorspace && pix->colorspace->n == 4) { - value = 255 - value; int x, y; unsigned char *s = pix->samples; + + value = 255 - value; for (y = 0; y < pix->h; y++) { for (x = 0; x < pix->w; x++) -- cgit v1.2.3