diff options
Diffstat (limited to 'fitz/base_context.c')
-rw-r--r-- | fitz/base_context.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/fitz/base_context.c b/fitz/base_context.c index fe69ff8e..075a3d02 100644 --- a/fitz/base_context.c +++ b/fitz/base_context.c @@ -1,12 +1,4 @@ -#include "fitz.h" - -static fz_obj * -fz_resolve_indirect_null(fz_obj *ref) -{ - return ref; -} - -fz_obj *(*fz_resolve_indirect)(fz_obj*) = fz_resolve_indirect_null; +#include "fitz-internal.h" void fz_free_context(fz_context *ctx) @@ -130,7 +122,9 @@ fz_clone_context_internal(fz_context *ctx) if (ctx == NULL || ctx->alloc == NULL) return NULL; new_ctx = new_context_phase1(ctx->alloc, ctx->locks); - new_ctx->store = fz_store_keep(ctx); + /* Inherit AA defaults from old context. */ + fz_copy_aa_context(new_ctx, ctx); + new_ctx->store = fz_keep_store_context(ctx); new_ctx->glyph_cache = fz_keep_glyph_cache(ctx); new_ctx->font = fz_keep_font_context(ctx); return new_ctx; |