summaryrefslogtreecommitdiff
path: root/fitz/res_text.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-02-03 16:04:03 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-02-03 16:04:03 +0100
commitf262a8c0bfae0cd90c2cd29acd409baf2157c241 (patch)
tree1a9f3a8c483e16c5d3d435d7c7143a6aa73b58e1 /fitz/res_text.c
parent139d80bd65a164accf9d36d244d3d6a4c555aa47 (diff)
downloadmupdf-f262a8c0bfae0cd90c2cd29acd409baf2157c241.tar.xz
Be consistent about passing a fz_context in path/text/shade functions.
Diffstat (limited to 'fitz/res_text.c')
-rw-r--r--fitz/res_text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fitz/res_text.c b/fitz/res_text.c
index cc43b261..cdfaaa98 100644
--- a/fitz/res_text.c
+++ b/fitz/res_text.c
@@ -6,7 +6,7 @@ fz_new_text(fz_context *ctx, fz_font *font, fz_matrix trm, int wmode)
fz_text *text;
text = fz_malloc_struct(ctx, fz_text);
- text->font = fz_keep_font(font);
+ text->font = fz_keep_font(ctx, font);
text->trm = trm;
text->wmode = wmode;
text->len = 0;
@@ -44,7 +44,7 @@ fz_clone_text(fz_context *ctx, fz_text *old)
fz_rethrow(ctx);
}
memcpy(text->items, old->items, text->len * sizeof(fz_text_item));
- text->font = fz_keep_font(old->font);
+ text->font = fz_keep_font(ctx, old->font);
text->trm = old->trm;
text->wmode = old->wmode;
text->cap = text->len;
@@ -123,7 +123,7 @@ static int isxmlmeta(int c)
return c < 32 || c >= 128 || c == '&' || c == '<' || c == '>' || c == '\'' || c == '"';
}
-void fz_debug_text(fz_text *text, int indent)
+void fz_debug_text(fz_context *ctx, fz_text *text, int indent)
{
int i, n;
for (i = 0; i < text->len; i++)