From 18379a77c87d00d04409ab780c45ba1fa1936da5 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 9 May 2017 20:03:13 +0100 Subject: Fix plotter bug. We were passing in the wrong source alpha value in one of the plotter calls. This is not a call used in our standard builds, hence us not having seen the problem before. Credit to Sebastian for spotting the problem and suggesting the fix. --- source/fitz/draw-paint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/fitz/draw-paint.c b/source/fitz/draw-paint.c index 42a1543c..e86c3b71 100644 --- a/source/fitz/draw-paint.c +++ b/source/fitz/draw-paint.c @@ -461,7 +461,7 @@ static void paint_solid_color_N(byte * restrict dp, int n, int w, const byte * r static void paint_solid_color_N_da(byte * restrict dp, int n, int w, const byte * restrict color, int da) { TRACK_FN(); - template_solid_color_N_general(dp, n, w, color, 1, FZ_EXPAND(color[1])); + template_solid_color_N_general(dp, n, w, color, 1, FZ_EXPAND(color[n])); } #endif /* FZ_PLOTTERS_N */ -- cgit v1.2.3