summaryrefslogtreecommitdiff
path: root/source/tools/mudraw.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-04-26 10:31:21 +0100
committerRobin Watts <robin.watts@artifex.com>2016-04-26 15:15:44 +0100
commit6bf5a0ac36b7a6801656932c07544efd34fc514a (patch)
tree1fe19d2327b92e7fcef98518926720c5eb998452 /source/tools/mudraw.c
parent4ecec105b46a096bc2da097003ff0f3e9d4473a6 (diff)
downloadmupdf-6bf5a0ac36b7a6801656932c07544efd34fc514a.tar.xz
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).
Diffstat (limited to 'source/tools/mudraw.c')
-rw-r--r--source/tools/mudraw.c6
1 files changed, 3 insertions, 3 deletions
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);