diff options
Diffstat (limited to 'source/fitz/draw-device.c')
-rw-r--r-- | source/fitz/draw-device.c | 2 |
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); |