From 5bc368de9feb7d12c124e2d0712e2d7314420c44 Mon Sep 17 00:00:00 2001 From: Michael Vrhel Date: Mon, 7 Aug 2017 18:57:46 -0700 Subject: Make sure shades use proper "default" color space. Fixes some issues in Altona test file. --- include/mupdf/fitz/shade.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/mupdf/fitz/shade.h') diff --git a/include/mupdf/fitz/shade.h b/include/mupdf/fitz/shade.h index 5604e762..24cb4cb2 100644 --- a/include/mupdf/fitz/shade.h +++ b/include/mupdf/fitz/shade.h @@ -122,6 +122,9 @@ fz_rect *fz_bound_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, shade: The shade to paint. + override_cs: NULL, or colorspace to override the shades + inbuilt colorspace. + ctm: The transform to apply. dest: The pixmap to render into. @@ -133,7 +136,7 @@ fz_rect *fz_bound_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, op: NULL, or pointer to overprint bitmap. */ -void fz_paint_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_pixmap *dest, const fz_color_params *color_params, const fz_irect *bbox, const fz_overprint *op); +void fz_paint_shade(fz_context *ctx, fz_shade *shade, fz_colorspace *override_cs, const fz_matrix *ctm, fz_pixmap *dest, const fz_color_params *color_params, const fz_irect *bbox, const fz_overprint *op); /* * Handy routine for processing mesh based shades -- cgit v1.2.3