diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-05-24 19:55:42 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-05-26 10:36:35 +0100 |
commit | 82b600dac5eb34b0c156302581303be834d655ce (patch) | |
tree | 148a78649363b3c6add02ce1e0f057fab3cdbf57 /source/fitz/draw-affine.c | |
parent | ee972fbfa1093fe2e8641dc450e1c20347df2b04 (diff) | |
download | mupdf-82b600dac5eb34b0c156302581303be834d655ce.tar.xz |
Cope better when asked to plot alpha only pixmaps.
Converting a pixmap to an alpha only pixmap means "just keep
the alpha". If there IS no alpha, then a solid alpha is
assumed.
Diffstat (limited to 'source/fitz/draw-affine.c')
-rw-r--r-- | source/fitz/draw-affine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/draw-affine.c b/source/fitz/draw-affine.c index 70e05121..38679d6e 100644 --- a/source/fitz/draw-affine.c +++ b/source/fitz/draw-affine.c @@ -1365,7 +1365,7 @@ fz_paint_image_imp(fz_pixmap * restrict dst, const fz_irect *scissor, const fz_p /* Sometimes we can get an alpha only input to be * ploted. In this case treat it as a greyscale * input. */ - if (img->n == sa && n > 0) + if (img->n == sa && color) sa = 0; if (n == 3 && img->n == 1 + sa && !color) |