diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-08-02 12:11:03 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-10-24 15:16:35 +0100 |
commit | 5ca92b5a7166cb0304f9d30d0989b5379c7fa532 (patch) | |
tree | 13e8cd576815154304b34ed51f30f15bc4c02ab6 /source/fitz/draw-imp.h | |
parent | 874cd7a3b8b803702f1d6ccb8c674e8662002e9b (diff) | |
download | mupdf-5ca92b5a7166cb0304f9d30d0989b5379c7fa532.tar.xz |
Fix overprint with shadings.
Diffstat (limited to 'source/fitz/draw-imp.h')
-rw-r--r-- | source/fitz/draw-imp.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/fitz/draw-imp.h b/source/fitz/draw-imp.h index 8d1c3ef6..47a429d1 100644 --- a/source/fitz/draw-imp.h +++ b/source/fitz/draw-imp.h @@ -110,11 +110,11 @@ struct fz_aa_context_s /* Overprint bitmap */ -typedef struct +struct fz_overprint_s { /* Bit i set -> never alter this color */ uint32_t mask[(FZ_MAX_COLORS+31)/32]; -} fz_overprint; +}; static void inline fz_set_overprint(fz_overprint *op, int i) { @@ -446,6 +446,7 @@ void fz_paint_image_with_color(fz_pixmap * restrict dst, const fz_irect * restri void fz_paint_pixmap(fz_pixmap * restrict dst, const fz_pixmap * restrict src, int alpha); void fz_paint_pixmap_with_mask(fz_pixmap * restrict dst, const fz_pixmap * restrict src, const fz_pixmap * restrict msk); void fz_paint_pixmap_with_bbox(fz_pixmap * restrict dst, const fz_pixmap * restrict src, int alpha, fz_irect bbox); +void fz_paint_pixmap_with_overprint(fz_pixmap * restrict dst, const fz_pixmap * restrict src, const fz_overprint *op); void fz_blend_pixmap(fz_context *ctx, fz_pixmap * restrict dst, fz_pixmap * restrict src, int alpha, int blendmode, int isolated, const fz_pixmap * restrict shape); |