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/fitz-internal.h | |
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/fitz-internal.h')
-rw-r--r-- | fitz/fitz-internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h index 17a919d3..22947cf4 100644 --- a/fitz/fitz-internal.h +++ b/fitz/fitz-internal.h @@ -1202,8 +1202,8 @@ void fz_transform_path(fz_context *ctx, fz_path *path, const fz_matrix *transfor fz_path *fz_clone_path(fz_context *ctx, fz_path *old); -fz_rect *fz_bound_path(fz_context *ctx, fz_path *path, fz_stroke_state *stroke, const fz_matrix *ctm, fz_rect *r); -fz_rect *fz_adjust_rect_for_stroke(fz_rect *r, fz_stroke_state *stroke, const fz_matrix *ctm); +fz_rect *fz_bound_path(fz_context *ctx, fz_path *path, const fz_stroke_state *stroke, const fz_matrix *ctm, fz_rect *r); +fz_rect *fz_adjust_rect_for_stroke(fz_rect *r, const fz_stroke_state *stroke, const fz_matrix *ctm); fz_stroke_state *fz_new_stroke_state(fz_context *ctx); fz_stroke_state *fz_new_stroke_state_with_len(fz_context *ctx, int len); @@ -1304,7 +1304,7 @@ struct fz_text_s fz_text *fz_new_text(fz_context *ctx, fz_font *face, const fz_matrix *trm, int wmode); void fz_add_text(fz_context *ctx, fz_text *text, int gid, int ucs, float x, float y); void fz_free_text(fz_context *ctx, fz_text *text); -fz_rect *fz_bound_text(fz_context *ctx, fz_text *text, const fz_matrix *ctm, fz_rect *r); +fz_rect *fz_bound_text(fz_context *ctx, fz_text *text, const fz_stroke_state *stroke, const fz_matrix *ctm, fz_rect *r); fz_text *fz_clone_text(fz_context *ctx, fz_text *old); void fz_print_text(fz_context *ctx, FILE *out, fz_text*); |