summaryrefslogtreecommitdiff
path: root/source/tools
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-07-02 13:30:37 +0100
committerRobin Watts <robin.watts@artifex.com>2013-09-30 17:21:43 +0100
commit6a6284ddfa453f909ba6576b85166b7cf26941ee (patch)
treeb331a80469ef7dee1cc4414bfb2d42221a991605 /source/tools
parenta8aec7875aaf6c8d8d4ed37ce74705988b73e9c1 (diff)
downloadmupdf-6a6284ddfa453f909ba6576b85166b7cf26941ee.tar.xz
Disable image interpolation with a hint.
Set the hint in mudraw when AA bits is set to 0.
Diffstat (limited to 'source/tools')
-rw-r--r--source/tools/mudraw.c2
1 files changed, 2 insertions, 0 deletions
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