summaryrefslogtreecommitdiff
path: root/source/fitz/pixmap.c
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2017-07-12 18:43:07 -0700
committerRobin Watts <robin.watts@artifex.com>2017-07-17 19:32:06 +0100
commita3d05504307e05e9bcf71aff7e5e86f0090bbba2 (patch)
treef54ef0d87cc2cdc9559107e02e53eaf1499c1ec5 /source/fitz/pixmap.c
parent8260c7b828c5df4895db15196be70b4bb58fbee7 (diff)
downloadmupdf-a3d05504307e05e9bcf71aff7e5e86f0090bbba2.tar.xz
Don't convert cmyka images to rgba
We should handle the cmyka images in their native form now that we are holding the data inverted. Fixes fts_17_1700.pdf Also fixes fts_43xx.xps
Diffstat (limited to 'source/fitz/pixmap.c')
-rw-r--r--source/fitz/pixmap.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/fitz/pixmap.c b/source/fitz/pixmap.c
index d89889fd..21e75764 100644
--- a/source/fitz/pixmap.c
+++ b/source/fitz/pixmap.c
@@ -676,9 +676,6 @@ fz_premultiply_pixmap(fz_context *ctx, fz_pixmap *pix)
if (!pix->alpha)
return;
- if (fz_colorspace_is_subtractive(ctx, pix->colorspace))
- fz_throw(ctx, FZ_ERROR_GENERIC, "cannot pre-multiply subtractive colors");
-
for (y = 0; y < pix->h; y++)
{
for (x = 0; x < pix->w; x++)