diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-05-09 20:01:37 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-05-10 18:44:57 +0100 |
commit | 81626cb122701420a15dae49ed0e7ec3c442e9d3 (patch) | |
tree | 05c3366c61889c99a2640fa8b398c83adb6f6af9 /fitz/res_path.c | |
parent | 6d869a15eb33bdda06a737d2af6c04139e2b3bfe (diff) | |
download | mupdf-81626cb122701420a15dae49ed0e7ec3c442e9d3.tar.xz |
Update fz_bound_{text,path} functions.
Pass stroke state into fz_bound_text to allow for stroked text.
Simplifies some calling code.
Add consts to clarify the meanings of the calls.
Diffstat (limited to 'fitz/res_path.c')
-rw-r--r-- | fitz/res_path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/res_path.c b/fitz/res_path.c index f8d1e8ce..b2e4f6f5 100644 --- a/fitz/res_path.c +++ b/fitz/res_path.c @@ -253,7 +253,7 @@ static inline fz_rect *bound_expand(fz_rect *r, const fz_point *p) } fz_rect * -fz_bound_path(fz_context *ctx, fz_path *path, fz_stroke_state *stroke, const fz_matrix *ctm, fz_rect *r) +fz_bound_path(fz_context *ctx, fz_path *path, const fz_stroke_state *stroke, const fz_matrix *ctm, fz_rect *r) { fz_point p; int i = 0; @@ -321,7 +321,7 @@ fz_bound_path(fz_context *ctx, fz_path *path, fz_stroke_state *stroke, const fz_ } fz_rect * -fz_adjust_rect_for_stroke(fz_rect *r, fz_stroke_state *stroke, const fz_matrix *ctm) +fz_adjust_rect_for_stroke(fz_rect *r, const fz_stroke_state *stroke, const fz_matrix *ctm) { float expand; |