summaryrefslogtreecommitdiff
path: root/source/fitz/draw-affine.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-05-30 19:29:52 +0100
committerRobin Watts <robin.watts@artifex.com>2016-05-30 20:07:48 +0100
commit5aaf35d602126570447c579dd90ca7afc111e3e5 (patch)
treeb49d2fdaad08303894e8aca98c94f8be93c27da1 /source/fitz/draw-affine.c
parent61cb26c84a9c542c537c172b14b9c4ebed5b763a (diff)
downloadmupdf-5aaf35d602126570447c579dd90ca7afc111e3e5.tar.xz
Fix some "defined but not used" when FZ_PLOTTERS_RGB is 0.
Diffstat (limited to 'source/fitz/draw-affine.c')
-rw-r--r--source/fitz/draw-affine.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/fitz/draw-affine.c b/source/fitz/draw-affine.c
index db68a705..e9d11dab 100644
--- a/source/fitz/draw-affine.c
+++ b/source/fitz/draw-affine.c
@@ -1269,12 +1269,10 @@ paint_affine_lerp_g2rgb_alpha(byte * restrict dp, int da, const byte * restrict
TRACK_FN();
template_affine_alpha_g2rgb_lerp(dp, 0, sp, sw, sh, ss, 0, u, v, fa, fb, w, alpha, hp);
}
-#endif /* FZ_PLOTTERS_RGB */
static paintfn_t *
fz_paint_affine_g2rgb_lerp(int da, int sa, int fa, int fb, int n, int alpha)
{
-#if FZ_PLOTTERS_RGB
if (da)
{
if (sa)
@@ -1309,9 +1307,9 @@ fz_paint_affine_g2rgb_lerp(int da, int sa, int fa, int fb, int n, int alpha)
return paint_affine_lerp_g2rgb_alpha;
}
}
-#endif /* FZ_PLOTTERS_RGB */
return NULL;
}
+#endif /* FZ_PLOTTERS_RGB */
static void
paint_affine_near_da_sa_0_fa0(byte * restrict dp, int da, const byte * restrict sp, int sw, int sh, int ss, int sa, int u, int v, int fa, int fb, int w, int n, int alpha, const byte * restrict color, byte * restrict hp)
@@ -2667,12 +2665,10 @@ paint_affine_near_alpha_g2rgb(byte * restrict dp, int da, const byte * restrict
TRACK_FN();
template_affine_alpha_g2rgb_near(dp, 0, sp, sw, sh, ss, 0, u, v, fa, fb, w, alpha, hp);
}
-#endif /* FZ_PLOTTERS_RGB */
static paintfn_t *
fz_paint_affine_g2rgb_near(int da, int sa, int fa, int fb, int n, int alpha)
{
-#if FZ_PLOTTERS_RGB
if (da)
{
if (sa)
@@ -2775,9 +2771,9 @@ fz_paint_affine_g2rgb_near(int da, int sa, int fa, int fb, int n, int alpha)
}
}
}
-#endif /* FZ_PLOTTERS_G */
return NULL;
}
+#endif /* FZ_PLOTTERS_RGB */
static void
paint_affine_color_lerp_da_0(byte * restrict dp, int da, const byte * restrict sp, int sw, int sh, int ss, int sa, int u, int v, int fa, int fb, int w, int n, int alpha, const byte * restrict color, byte * restrict hp)