diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-02-28 12:48:12 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-02-28 17:07:44 +0000 |
commit | 5d63cf651367bee808d653213c7af7a31ad833ce (patch) | |
tree | 5a61752d9b096946d27e9df5944b3119e9cc476d /fitz/fitz.h | |
parent | 215550b73bfaad01b29cda005dd5b0d6b749b381 (diff) | |
download | mupdf-5d63cf651367bee808d653213c7af7a31ad833ce.tar.xz |
Pass bbox to pdf_set_annot_appearance rather than base on display list
Use of the bbox device to derive the area of the display list can lead
to bad results because of heuristics used to handle corners of stroked
paths.
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r-- | fitz/fitz.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h index 4c7022d4..29b9cee4 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -1138,6 +1138,14 @@ fz_rect *fz_rect_from_irect(fz_rect *restrict rect, const fz_irect *restrict bbo fz_rect *fz_expand_rect(fz_rect *b, float expand); /* + fz_include_point_in_rect: Expand a bbox to include a given point. + To create a rectangle that encompasses a sequence of points, the + rectangle must first be set to be the empty rectangle at one of + the points before including the others. +*/ +fz_rect *fz_include_point_in_rect(fz_rect *r, const fz_point *p); + +/* fz_translate_irect: Translate bounding box. Translate a bbox by a given x and y offset. Allows for overflow. |