diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-06 15:03:35 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-06 15:03:35 +0000 |
commit | 51ea850c2f8464a7245268af3d496141b513d6ba (patch) | |
tree | b39e88b4f06690bbd14e571934c7b88df4336bc4 /apps | |
parent | 3a207e707b352b8031409f3851705fbc7eccff36 (diff) | |
download | mupdf-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.c | 4 |
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; |