diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2017-07-20 23:21:51 -0700 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-07-27 12:32:56 +0100 |
commit | 292e73cd878d39d0c643a8302db644091502ad43 (patch) | |
tree | ccf914ad4b4462279327b1cca10cc791a9d5c190 | |
parent | 5ef0934e92fc57aed9fb05466dd3f1c47f09c93a (diff) | |
download | mupdf-292e73cd878d39d0c643a8302db644091502ad43.tar.xz |
Fix issue in alpha indexing
Spot colors were getting bogus (typically 0xcd)
alpha applied to them during drawing.
-rw-r--r-- | source/fitz/draw-paint.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |