From 89b91112b810a6b29396b8f4e91c8bde92969e0e Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 28 Jul 2017 12:42:31 +0100 Subject: Change colorspace 'device_n' field to be a flags word. --- source/fitz/draw-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz/draw-device.c') diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c index 7a47e707..d8f5c911 100644 --- a/source/fitz/draw-device.c +++ b/source/fitz/draw-device.c @@ -342,7 +342,7 @@ colors_supported(fz_context *ctx, fz_colorspace *cs, fz_pixmap *dest) /* If our destination is CMYK and the source color space is only C, M, Y or K we support it * even if we have no seps */ - if (fz_colorspace_is_subtractive(ctx, dest->colorspace) && fz_colorspace_device_n_info(ctx, cs) == FZ_DEVICE_N_CMYK_ONLY) + if (fz_colorspace_is_subtractive(ctx, dest->colorspace) && fz_colorspace_device_n_has_only_cmyk(ctx, cs)) return 1; return 0; -- cgit v1.2.3