summaryrefslogtreecommitdiff
path: root/source/fitz/draw-paint.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-08-04 14:52:11 +0100
committerRobin Watts <robin.watts@artifex.com>2017-10-24 15:16:35 +0100
commit38620dea1512581a65350955cebb1028063ce42b (patch)
tree46172be5f2be7af54c974e04932e2bdd06c724bf /source/fitz/draw-paint.c
parent556a18a855b3641185c982cc31740b5462b3f970 (diff)
downloadmupdf-38620dea1512581a65350955cebb1028063ce42b.tar.xz
Avoid using overprinting routines unnecessarily.
Diffstat (limited to 'source/fitz/draw-paint.c')
-rw-r--r--source/fitz/draw-paint.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/fitz/draw-paint.c b/source/fitz/draw-paint.c
index 581c2ff9..aaa1c890 100644
--- a/source/fitz/draw-paint.c
+++ b/source/fitz/draw-paint.c
@@ -572,7 +572,7 @@ fz_solid_color_painter_t *
fz_get_solid_color_painter(int n, const byte * restrict color, int da, const fz_overprint * restrict eop)
{
#ifdef FZ_ENABLE_SPOT_RENDERING
- if (eop != NULL)
+ if (fz_overprint_required(eop))
{
if (da)
return paint_solid_color_N_da_op;
@@ -1015,7 +1015,7 @@ fz_span_color_painter_t *
fz_get_span_color_painter(int n, int da, const byte * restrict color, const fz_overprint * restrict eop)
{
#ifdef FZ_ENABLE_SPOT_RENDERING
- if (eop != NULL)
+ if (fz_overprint_required(eop))
{
return da ? paint_span_with_color_N_da_op : paint_span_with_color_N_op;
}
@@ -1990,7 +1990,7 @@ fz_span_painter_t *
fz_get_span_painter(int da, int sa, int n, int alpha, const fz_overprint * restrict eop)
{
#ifdef FZ_ENABLE_SPOT_RENDERING
- if (eop != NULL)
+ if (fz_overprint_required(eop))
{
if (alpha == 255)
return paint_span_N_general_op;
@@ -2572,7 +2572,7 @@ static inline void
fz_paint_glyph_alpha(const unsigned char * restrict colorbv, int n, int span, unsigned char * restrict dp, int da, const fz_glyph *glyph, int w, int h, int skip_x, int skip_y, const fz_overprint * restrict eop)
{
#ifdef FZ_ENABLE_SPOT_RENDERING
- if (eop != NULL)
+ if (fz_overprint_required(eop))
{
if (da)
fz_paint_glyph_alpha_N_da_op(colorbv, n, span, dp, glyph, w, h, skip_x, skip_y, eop);
@@ -2629,7 +2629,7 @@ static inline void
fz_paint_glyph_solid(const unsigned char * restrict colorbv, int n, int span, unsigned char * restrict dp, int da, const fz_glyph * restrict glyph, int w, int h, int skip_x, int skip_y, const fz_overprint * restrict eop)
{
#ifdef FZ_ENABLE_SPOT_RENDERING
- if (eop != NULL)
+ if (fz_overprint_required(eop))
{
if (da)
fz_paint_glyph_solid_N_da_op(colorbv, n, span, dp, glyph, w, h, skip_x, skip_y, eop);