diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-07-28 12:42:31 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-10-24 15:16:35 +0100 |
commit | 89b91112b810a6b29396b8f4e91c8bde92969e0e (patch) | |
tree | fa5f07182062fad454e0696f5daa608dd0ba8920 /source/pdf | |
parent | fee66b72d296ecdd9654109c31e9dbfa4811d034 (diff) | |
download | mupdf-89b91112b810a6b29396b8f4e91c8bde92969e0e.tar.xz |
Change colorspace 'device_n' field to be a flags word.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-colorspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-colorspace.c b/source/pdf/pdf-colorspace.c index 8dec434e..44105f7b 100644 --- a/source/pdf/pdf-colorspace.c +++ b/source/pdf/pdf-colorspace.c @@ -204,7 +204,7 @@ load_devicen(fz_context *ctx, pdf_obj *array) devn->base = fz_keep_colorspace(ctx, base); /* We drop it during the devn free... */ devn->tint = tint; - cs = fz_new_colorspace(ctx, colorspace_name, n, 1, FZ_DEVICE_N_SPOTS_ONLY, + cs = fz_new_colorspace(ctx, colorspace_name, n, FZ_CS_SUBTRACTIVE | FZ_CS_DEVICE_N, fz_colorspace_is_icc(ctx, fz_device_rgb(ctx)) ? devicen_to_alt : devicen_to_rgb, NULL, base_devicen, NULL, free_devicen, devn, sizeof(struct devicen) + base->size + pdf_function_size(ctx, tint)); |