From 6a6284ddfa453f909ba6576b85166b7cf26941ee Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 2 Jul 2013 13:30:37 +0100 Subject: Disable image interpolation with a hint. Set the hint in mudraw when AA bits is set to 0. --- source/tools/mudraw.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/tools') diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index c95be5e3..27f32f99 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -700,6 +700,8 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) fz_clear_pixmap_with_value(ctx, pix, 255); dev = fz_new_draw_device(ctx, pix); + if (alphabits == 0) + fz_enable_device_hints(dev, FZ_DONT_INTERPOLATE_IMAGES); if (list) fz_run_display_list(list, dev, &ctm, &tbounds, &cookie); else -- cgit v1.2.3