summaryrefslogtreecommitdiff
path: root/source/fitz/draw-paint.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-05-09 20:03:13 +0100
committerRobin Watts <robin.watts@artifex.com>2017-05-09 20:04:42 +0100
commit18379a77c87d00d04409ab780c45ba1fa1936da5 (patch)
tree984c2adbed85e75fbff6359699188523dbc37343 /source/fitz/draw-paint.c
parenta5b5171aefe2e3318792982a3bb2623b1e7b4149 (diff)
downloadmupdf-18379a77c87d00d04409ab780c45ba1fa1936da5.tar.xz
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.
Diffstat (limited to 'source/fitz/draw-paint.c')
-rw-r--r--source/fitz/draw-paint.c2
1 files changed, 1 insertions, 1 deletions
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 */