diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-02-03 16:04:03 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-02-03 16:04:03 +0100 |
commit | f262a8c0bfae0cd90c2cd29acd409baf2157c241 (patch) | |
tree | 1a9f3a8c483e16c5d3d435d7c7143a6aa73b58e1 /draw | |
parent | 139d80bd65a164accf9d36d244d3d6a4c555aa47 (diff) | |
download | mupdf-f262a8c0bfae0cd90c2cd29acd409baf2157c241.tar.xz |
Be consistent about passing a fz_context in path/text/shade functions.
Diffstat (limited to 'draw')
-rw-r--r-- | draw/draw_device.c | 2 | ||||
-rw-r--r-- | draw/draw_glyph.c | 2 |
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) |