summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-06 15:03:35 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-06 15:03:35 +0000
commit51ea850c2f8464a7245268af3d496141b513d6ba (patch)
treeb39e88b4f06690bbd14e571934c7b88df4336bc4 /apps
parent3a207e707b352b8031409f3851705fbc7eccff36 (diff)
downloadmupdf-51ea850c2f8464a7245268af3d496141b513d6ba.tar.xz
Move antialias levels into context.
In builds that support configurable layers of antialiasing, move the variables that control this into the context. This makes it possible to safely use different levels of antialiasing in different threads.
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfdraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/pdfdraw.c b/apps/pdfdraw.c
index fd7cc57f..69fae0ba 100644
--- a/apps/pdfdraw.c
+++ b/apps/pdfdraw.c
@@ -351,8 +351,6 @@ int main(int argc, char **argv)
}
}
- fz_set_aa_level(alphabits);
-
if (fz_optind == argc)
usage();
@@ -372,6 +370,8 @@ int main(int argc, char **argv)
exit(1);
}
+ fz_set_aa_level(ctx, alphabits);
+
glyphcache = fz_new_glyph_cache(ctx);
colorspace = fz_device_rgb;