From 292e73cd878d39d0c643a8302db644091502ad43 Mon Sep 17 00:00:00 2001 From: Michael Vrhel Date: Thu, 20 Jul 2017 23:21:51 -0700 Subject: Fix issue in alpha indexing Spot colors were getting bogus (typically 0xcd) alpha applied to them during drawing. --- source/fitz/draw-paint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz') diff --git a/source/fitz/draw-paint.c b/source/fitz/draw-paint.c index 7de650ab..e59b93fc 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[n])); + template_solid_color_N_general(dp, n, w, color, 1, FZ_EXPAND(color[n-1])); } #endif /* FZ_PLOTTERS_N */ -- cgit v1.2.3