diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-15 20:12:18 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-16 11:43:42 +0000 |
commit | 5409d2f3ba310b59074ec590ea69ecd423653d85 (patch) | |
tree | 8fa668767328919e93d294e031c6438a5e08c434 /fitz/dev_list.c | |
parent | fa05641381427855c7ce45138572aa44178d2a25 (diff) | |
download | mupdf-5409d2f3ba310b59074ec590ea69ecd423653d85.tar.xz |
Bug 692805: BBox rounding issues
Currently all conversions from rect to bbox are done using a single
function, fz_round_rect. This causes problems, as sometimes we want
'round, allowing for slight calculation errors' and sometimes we
want 'round slavishly to ensure we have a bbox that covers the rect'.
We therefore split these 2 cases into 2 separate functions;
fz_round_rect is kept, meaning "round outwards allowing for slight
errors", and fz_bbox_covering_rect is added to mean "give us the
smallest bbox that is guaranteed to cover rect".
No regressions seen.
Diffstat (limited to 'fitz/dev_list.c')
-rw-r--r-- | fitz/dev_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/dev_list.c b/fitz/dev_list.c index f0cfdeb5..1ca8bf98 100644 --- a/fitz/dev_list.c +++ b/fitz/dev_list.c @@ -618,7 +618,7 @@ fz_run_display_list(fz_display_list *list, fz_device *dev, fz_matrix top_ctm, fz } else { - bbox = fz_round_rect(fz_transform_rect(top_ctm, node->rect)); + bbox = fz_bbox_covering_rect(fz_transform_rect(top_ctm, node->rect)); bbox = fz_intersect_bbox(bbox, scissor); empty = fz_is_empty_bbox(bbox); } |