diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-02-03 02:56:20 +0100 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2018-02-14 15:15:45 +0100 |
commit | 02584b4f4f5a7fa3d13bf622beca3ccd4e08b1c6 (patch) | |
tree | 6655b815aa9562b7b51e60bc30724b3092360564 | |
parent | b2e7d38e845c7d4922d05e6e41f3a2dc1bc1b14a (diff) | |
download | mupdf-02584b4f4f5a7fa3d13bf622beca3ccd4e08b1c6.tar.xz |
Remember to end knockout group when drawing image.
-rw-r--r-- | source/fitz/draw-device.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c index 43dbb52d..12ea4aa1 100644 --- a/source/fitz/draw-device.c +++ b/source/fitz/draw-device.c @@ -1827,12 +1827,13 @@ fz_draw_fill_image(fz_context *ctx, fz_device *devp, fz_image *image, const fz_m } fz_paint_image(state->dest, &state->scissor, state->shape, state->group_alpha, pixmap, &local_ctm, alpha * 255, !(devp->hints & FZ_DONT_INTERPOLATE_IMAGES), devp->flags & FZ_DEVFLAG_GRIDFIT_AS_TILED, eop); - - if (state->blendmode & FZ_BLEND_KNOCKOUT) - fz_knockout_end(ctx, dev); } fz_always(ctx) + { fz_drop_pixmap(ctx, pixmap); + if (state->blendmode & FZ_BLEND_KNOCKOUT) + fz_knockout_end(ctx, dev); + } fz_catch(ctx) fz_rethrow(ctx); } |