diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-07-14 17:22:19 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-07-17 19:32:06 +0100 |
commit | 6dc533a774c732b0292e5b566766f3a000cd45fb (patch) | |
tree | 68887d7488d143faec0500ba420b9f5fdbe1ec2b /source/fitz/draw-imp.h | |
parent | 3ef06faf300d7a840ecd66a8861c5bda585fc020 (diff) | |
download | mupdf-6dc533a774c732b0292e5b566766f3a000cd45fb.tar.xz |
Complement subtractive colors before applying blend modes.
(Incorporates fixes from Tor, Michael and Robin).
Diffstat (limited to 'source/fitz/draw-imp.h')
-rw-r--r-- | source/fitz/draw-imp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/fitz/draw-imp.h b/source/fitz/draw-imp.h index 2d78a912..5c6fc7b8 100644 --- a/source/fitz/draw-imp.h +++ b/source/fitz/draw-imp.h @@ -427,8 +427,7 @@ void fz_paint_pixmap(fz_pixmap * restrict dst, const fz_pixmap * restrict src, i 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_blend_pixmap(fz_pixmap * restrict dst, fz_pixmap * restrict src, int alpha, int blendmode, int isolated, const fz_pixmap * restrict shape); -void fz_blend_pixel(unsigned char dp[3], unsigned char bp[3], unsigned char sp[3], int blendmode); +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); void fz_paint_glyph(const unsigned char * restrict colorbv, fz_pixmap * restrict dst, unsigned char * restrict dp, const fz_glyph * restrict glyph, int w, int h, int skip_x, int skip_y); |