summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/shade.h
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2017-08-07 18:57:46 -0700
committerRobin Watts <robin.watts@artifex.com>2017-10-24 15:16:36 +0100
commit5bc368de9feb7d12c124e2d0712e2d7314420c44 (patch)
tree9a2841d082ab3133cb6abdfa7bdd932b865782d2 /include/mupdf/fitz/shade.h
parent38620dea1512581a65350955cebb1028063ce42b (diff)
downloadmupdf-5bc368de9feb7d12c124e2d0712e2d7314420c44.tar.xz
Make sure shades use proper "default" color space.
Fixes some issues in Altona test file.
Diffstat (limited to 'include/mupdf/fitz/shade.h')
-rw-r--r--include/mupdf/fitz/shade.h5
1 files changed, 4 insertions, 1 deletions
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