summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2013-11-04 11:10:34 -0800
committerMichael Vrhel <michael.vrhel@artifex.com>2013-11-04 11:10:34 -0800
commit7867807a8471af734820fbbaf6d3dbeee4add9eb (patch)
tree61f905b03ab8832e251b12b3bd1614ab6101c021 /source/fitz
parent52ec654a3a5e36f8a6c1ffd52c57fe8ec8fbb29b (diff)
downloadmupdf-7867807a8471af734820fbbaf6d3dbeee4add9eb.tar.xz
Make sure declarations come first. This would not compile with default windows settings.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/pixmap.c3
1 files changed, 2 insertions, 1 deletions
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++)