summaryrefslogtreecommitdiff
path: root/fitz/res_font.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r--fitz/res_font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c
index edc8c054..8fb51377 100644
--- a/fitz/res_font.c
+++ b/fitz/res_font.c
@@ -954,7 +954,7 @@ fz_render_t3_glyph(fz_context *ctx, fz_font *font, int gid, const fz_matrix *trm
fz_irect_from_rect(&bbox, &bounds);
fz_intersect_irect(&bbox, &scissor);
- glyph = fz_new_pixmap_with_bbox(ctx, model ? model : fz_device_gray, &bbox);
+ glyph = fz_new_pixmap_with_bbox(ctx, model ? model : fz_device_gray(ctx), &bbox);
fz_clear_pixmap(ctx, glyph);
fz_concat(&ctm, &font->t3matrix, trm);