summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
Diffstat (limited to 'draw')
-rw-r--r--draw/draw_device.c2
-rw-r--r--draw/draw_glyph.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/draw/draw_device.c b/draw/draw_device.c
index fa97ad1e..e3ddc09e 100644
--- a/draw/draw_device.c
+++ b/draw/draw_device.c
@@ -741,7 +741,7 @@ fz_draw_fill_shade(fz_device *devp, fz_shade *shade, fz_matrix ctm, float alpha)
fz_draw_state *state = &dev->stack[dev->top];
fz_colorspace *model = state->dest->colorspace;
- bounds = fz_bound_shade(shade, ctm);
+ bounds = fz_bound_shade(dev->ctx, shade, ctm);
scissor = state->scissor;
bbox = fz_intersect_bbox(fz_round_rect(bounds), scissor);
diff --git a/draw/draw_glyph.c b/draw/draw_glyph.c
index d7704a57..49f04fe8 100644
--- a/draw/draw_glyph.c
+++ b/draw/draw_glyph.c
@@ -143,7 +143,7 @@ fz_render_glyph(fz_context *ctx, fz_font *font, int gid, fz_matrix ctm, fz_color
fz_try(ctx)
{
fz_hash_insert(ctx, cache->hash, &key, val);
- fz_keep_font(key.font);
+ fz_keep_font(ctx, key.font);
val = fz_keep_pixmap(ctx, val);
}
fz_catch(ctx)