From 51ea850c2f8464a7245268af3d496141b513d6ba Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 6 Dec 2011 15:03:35 +0000 Subject: 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. --- apps/pdfdraw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') 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; -- cgit v1.2.3