From 6bf5a0ac36b7a6801656932c07544efd34fc514a Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 26 Apr 2016 10:31:21 +0100 Subject: Mudraw: Set AA level in context before cloning context. When we clone the context, we copy the AA levels from the base context into the cloned context. This means that we must set the AA levels in the base context BEFORE cloning if we want them to be the same everywhere (or set them explicitly in all contexts). --- source/tools/mudraw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/tools') diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index 0907ffa8..120c166d 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -1258,6 +1258,9 @@ int mudraw_main(int argc, char **argv) exit(1); } + fz_set_text_aa_level(ctx, alphabits_text); + fz_set_graphics_aa_level(ctx, alphabits_graphics); + if (num_workers > 0) { workers = fz_calloc(ctx, num_workers, sizeof(*workers)); @@ -1271,9 +1274,6 @@ int mudraw_main(int argc, char **argv) } } - fz_set_text_aa_level(ctx, alphabits_text); - fz_set_graphics_aa_level(ctx, alphabits_graphics); - if (layout_css) { fz_buffer *buf = fz_read_file(ctx, layout_css); -- cgit v1.2.3