diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2013-11-04 11:10:34 -0800 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2013-11-04 11:10:34 -0800 |
commit | 7867807a8471af734820fbbaf6d3dbeee4add9eb (patch) | |
tree | 61f905b03ab8832e251b12b3bd1614ab6101c021 /source | |
parent | 52ec654a3a5e36f8a6c1ffd52c57fe8ec8fbb29b (diff) | |
download | mupdf-7867807a8471af734820fbbaf6d3dbeee4add9eb.tar.xz |
Make sure declarations come first. This would not compile with default windows settings.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/pixmap.c | 3 |
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++) |