From 14f0dd1c64500c1cf12dcb47d14620afa3416d9f Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 20 Sep 2018 12:05:26 +0100 Subject: Be consistent in use of #if FZ_ENABLE_... Using #ifdef FZ_ENABLE_ means we build code in, even if we have defined FZ_ENABLE_WHATEVER to be 0 (as we do in config.h). --- source/fitz/draw-paint.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source/fitz/draw-paint.c') diff --git a/source/fitz/draw-paint.c b/source/fitz/draw-paint.c index c437fa52..cf1af820 100644 --- a/source/fitz/draw-paint.c +++ b/source/fitz/draw-paint.c @@ -571,7 +571,7 @@ static void paint_solid_color_N_da_op(byte * FZ_RESTRICT dp, int n, int w, const fz_solid_color_painter_t * fz_get_solid_color_painter(int n, const byte * FZ_RESTRICT color, int da, const fz_overprint * FZ_RESTRICT eop) { -#ifdef FZ_ENABLE_SPOT_RENDERING +#if FZ_ENABLE_SPOT_RENDERING if (fz_overprint_required(eop)) { if (da) @@ -1014,7 +1014,7 @@ paint_span_with_color_N_da_op(byte * FZ_RESTRICT dp, const byte * FZ_RESTRICT mp fz_span_color_painter_t * fz_get_span_color_painter(int n, int da, const byte * FZ_RESTRICT color, const fz_overprint * FZ_RESTRICT eop) { -#ifdef FZ_ENABLE_SPOT_RENDERING +#if FZ_ENABLE_SPOT_RENDERING if (fz_overprint_required(eop)) { return da ? paint_span_with_color_N_da_op : paint_span_with_color_N_op; @@ -1976,7 +1976,7 @@ paint_span_N_alpha(byte * FZ_RESTRICT dp, int da, const byte * FZ_RESTRICT sp, i } #endif /* FZ_PLOTTERS_N */ -#ifdef FZ_ENABLE_SPOT_RENDERING +#if FZ_ENABLE_SPOT_RENDERING static void paint_span_N_general_op(byte * FZ_RESTRICT dp, int da, const byte * FZ_RESTRICT sp, int sa, int n, int w, int alpha, const fz_overprint * FZ_RESTRICT eop) { @@ -1995,7 +1995,7 @@ paint_span_N_general_alpha_op(byte * FZ_RESTRICT dp, int da, const byte * FZ_RES fz_span_painter_t * fz_get_span_painter(int da, int sa, int n, int alpha, const fz_overprint * FZ_RESTRICT eop) { -#ifdef FZ_ENABLE_SPOT_RENDERING +#if FZ_ENABLE_SPOT_RENDERING if (fz_overprint_required(eop)) { if (alpha == 255) @@ -2620,7 +2620,7 @@ intermediate_run: #include "paint-glyph.h" #endif /* FZ_PLOTTERS_N */ -#ifdef FZ_ENABLE_SPOT_RENDERING +#if FZ_ENABLE_SPOT_RENDERING #define ALPHA #define EOP #include "paint-glyph.h" @@ -2641,7 +2641,7 @@ intermediate_run: static inline void fz_paint_glyph_alpha(const unsigned char * FZ_RESTRICT colorbv, int n, int span, unsigned char * FZ_RESTRICT dp, int da, const fz_glyph *glyph, int w, int h, int skip_x, int skip_y, const fz_overprint * FZ_RESTRICT eop) { -#ifdef FZ_ENABLE_SPOT_RENDERING +#if FZ_ENABLE_SPOT_RENDERING if (fz_overprint_required(eop)) { if (da) @@ -2698,7 +2698,7 @@ fallback:{} static inline void fz_paint_glyph_solid(const unsigned char * FZ_RESTRICT colorbv, int n, int span, unsigned char * FZ_RESTRICT dp, int da, const fz_glyph * FZ_RESTRICT glyph, int w, int h, int skip_x, int skip_y, const fz_overprint * FZ_RESTRICT eop) { -#ifdef FZ_ENABLE_SPOT_RENDERING +#if FZ_ENABLE_SPOT_RENDERING if (fz_overprint_required(eop)) { if (da) -- cgit v1.2.3