summaryrefslogtreecommitdiff
path: root/source/fitz/draw-paint.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-08-07 16:43:36 +0100
committerRobin Watts <robin.watts@artifex.com>2017-09-08 17:04:32 +0100
commitc19847d27950680e3afb95e9953a3d0a4cecdf14 (patch)
tree99272b85d3d194be7e58df3d20767d4e3f59207e /source/fitz/draw-paint.c
parent0775b7afe68d7d77f1d8f03e0ccb3ff99cf00790 (diff)
downloadmupdf-c19847d27950680e3afb95e9953a3d0a4cecdf14.tar.xz
Remove unnecessary conditional.
The conditional is always == 255 here.
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 e59b93fc..8357d5a1 100644
--- a/source/fitz/draw-paint.c
+++ b/source/fitz/draw-paint.c
@@ -1308,7 +1308,7 @@ template_span_3_general(byte * restrict dp, int da, const byte * restrict sp, in
dp[1] = sp[1];
dp[2] = sp[2];
if (da)
- dp[3] = (sa ? sp[3] : 255);
+ dp[3] = 255;
}
dp += 3+da; sp += 3+sa;
}