summaryrefslogtreecommitdiff
path: root/source/fitz/draw-device.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-05-30 13:04:43 +0100
committerRobin Watts <robin.watts@artifex.com>2016-05-30 16:08:47 +0100
commit846a8a68df55016e5cc2e77d02f4b586b004df01 (patch)
tree93a74e1eb9335be8a1ffdf3191b2029b3c0c73e6 /source/fitz/draw-device.c
parentba5dd08df9b477dbfa5ee9b2c5b56f41dfa8bc85 (diff)
downloadmupdf-846a8a68df55016e5cc2e77d02f4b586b004df01.tar.xz
Ensure that we can use FZ_PLOTTERS_N instead of FZ_PLOTTERS_RGB.
Diffstat (limited to 'source/fitz/draw-device.c')
-rw-r--r--source/fitz/draw-device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c
index 99032df9..10122b1d 100644
--- a/source/fitz/draw-device.c
+++ b/source/fitz/draw-device.c
@@ -1271,12 +1271,14 @@ fz_draw_fill_image(fz_context *ctx, fz_device *devp, fz_image *image, const fz_m
if (pixmap->colorspace != model)
{
+#if FZ_PLOTTERS_RGB
if ((pixmap->colorspace == fz_device_gray(ctx) && model == fz_device_rgb(ctx)) ||
(pixmap->colorspace == fz_device_gray(ctx) && model == fz_device_bgr(ctx)))
{
/* We have special case rendering code for gray -> rgb/bgr */
}
else
+#endif
{
fz_irect bbox;
fz_pixmap_bbox(ctx, pixmap, &bbox);