summaryrefslogtreecommitdiff
path: root/fitz/base_context.c
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 /fitz/base_context.c
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 'fitz/base_context.c')
-rw-r--r--fitz/base_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fitz/base_context.c b/fitz/base_context.c
index 2986a8f8..d828509e 100644
--- a/fitz/base_context.c
+++ b/fitz/base_context.c
@@ -15,6 +15,7 @@ fz_free_context(fz_context *ctx)
return;
/* Other finalisation calls go here (in reverse order) */
+ fz_free_aa_context(ctx);
fz_free_font_context(ctx);
if (ctx->error)
@@ -54,6 +55,7 @@ fz_new_context(fz_alloc_context *alloc)
fz_try(ctx)
{
fz_new_font_context(ctx);
+ fz_new_aa_context(ctx);
}
fz_catch(ctx)
{