diff options
-rw-r--r-- | source/fitz/pixmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/fitz/pixmap.c b/source/fitz/pixmap.c index 2ac8bae5..30ec27d5 100644 --- a/source/fitz/pixmap.c +++ b/source/fitz/pixmap.c @@ -431,7 +431,7 @@ fz_clear_pixmap(fz_context *ctx, fz_pixmap *pix) stride *= h; h = 1; } - if (pix->alpha) + if (pix->alpha || fz_colorspace_is_subtractive(ctx, pix->colorspace)) { while (h--) { @@ -441,7 +441,6 @@ fz_clear_pixmap(fz_context *ctx, fz_pixmap *pix) } else { - /* FIXME: Not right for CMYK or other subtractive spaces */ while (h--) { memset(s, 0xff, (unsigned int)stride); |