diff options
-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++) |