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-device.c | |
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-device.c')
-rw-r--r-- | source/fitz/draw-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c index 66b198fc..908350e7 100644 --- a/source/fitz/draw-device.c +++ b/source/fitz/draw-device.c @@ -296,7 +296,7 @@ static void fz_knockout_end(fz_context *ctx, fz_draw_device *dev) if ((blendmode == 0) && (state[0].shape == state[1].shape)) fz_paint_pixmap(state[0].dest, state[1].dest, 255); else - fz_blend_pixmap(state[0].dest, state[1].dest, 255, blendmode, isolated, state[1].shape); + fz_blend_pixmap(ctx, state[0].dest, state[1].dest, 255, blendmode, isolated, state[1].shape); /* The following test should not be required, but just occasionally * errors can cause the stack to get out of sync, and this saves our @@ -1965,7 +1965,7 @@ fz_draw_end_group(fz_context *ctx, fz_device *devp) if ((blendmode == 0) && (state[0].shape == state[1].shape)) fz_paint_pixmap(state[0].dest, state[1].dest, alpha * 255); else - fz_blend_pixmap(state[0].dest, state[1].dest, alpha * 255, blendmode, isolated, state[1].shape); + fz_blend_pixmap(ctx, state[0].dest, state[1].dest, alpha * 255, blendmode, isolated, state[1].shape); /* The following test should not be required, but just occasionally * errors can cause the stack to get out of sync, and this might save |