summaryrefslogtreecommitdiff
path: root/fitz/res_font.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-01-30 13:57:45 +0100
committerTor Andersson <tor.andersson@artifex.com>2013-01-30 14:13:01 +0100
commit01e2ccf6ade55cc20e83b80bad81fef6627c9a05 (patch)
treecf3d40a3ed540ae9cb412cb7473fa469d8adebb7 /fitz/res_font.c
parent594c64f744862b993bcad12e05217f3d43e7d547 (diff)
downloadmupdf-01e2ccf6ade55cc20e83b80bad81fef6627c9a05.tar.xz
Rename fz_rect_covering_rect to fz_irect_from_rect.
It used to be called fz_bbox_covering_rect. It does exact rounding outwards of a rect, so that the resulting irect will always cover the entire area of the input rect. Use fz_round_rect for fuzzy rounding where near-integer values are rounded inwards.
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 56481962..47ec7c37 100644
--- a/fitz/res_font.c
+++ b/fitz/res_font.c
@@ -923,7 +923,7 @@ fz_render_t3_glyph(fz_context *ctx, fz_font *font, int gid, fz_matrix trm, fz_co
bounds = fz_bound_glyph(ctx, font, gid, trm);
bounds = fz_expand_rect(bounds, 1);
- bbox = fz_rect_covering_rect(bounds);
+ bbox = fz_irect_from_rect(bounds);
bbox = fz_intersect_irect(bbox, scissor);
glyph = fz_new_pixmap_with_bbox(ctx, model ? model : fz_device_gray, bbox);