diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-01-30 14:05:56 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2013-01-30 14:13:01 +0100 |
commit | 29f7d13d37022303c5d93ddd2942f6b87959f432 (patch) | |
tree | 0f1eeb4f3778713fe99b34649336aa27ddaf9a71 /fitz/fitz-internal.h | |
parent | 01e2ccf6ade55cc20e83b80bad81fef6627c9a05 (diff) | |
download | mupdf-29f7d13d37022303c5d93ddd2942f6b87959f432.tar.xz |
Always pass value structs (rect, matrix, etc) as values not by pointer.
Diffstat (limited to 'fitz/fitz-internal.h')
-rw-r--r-- | fitz/fitz-internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h index 518ed8c2..0f6b70c3 100644 --- a/fitz/fitz-internal.h +++ b/fitz/fitz-internal.h @@ -300,7 +300,7 @@ static inline int fz_mul255(int a, int b) * AMOUNT (in the 0...256 range). */ #define FZ_BLEND(SRC, DST, AMOUNT) ((((SRC)-(DST))*(AMOUNT) + ((DST)<<8))>>8) -void fz_gridfit_matrix(fz_matrix *m); +fz_matrix fz_gridfit_matrix(fz_matrix m); float fz_matrix_max_expansion(fz_matrix m); /* @@ -1162,7 +1162,7 @@ void fz_transform_path(fz_context *ctx, fz_path *path, fz_matrix transform); 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, fz_matrix ctm); -void fz_adjust_rect_for_stroke(fz_rect *r, fz_stroke_state *stroke, fz_matrix *ctm); +fz_rect fz_adjust_rect_for_stroke(fz_rect r, fz_stroke_state *stroke, 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); |