diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-04-25 14:15:43 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-04-26 14:42:52 +0100 |
commit | bfd1effe99d5038577cdc0be889e5424613f3c08 (patch) | |
tree | 0189d41857f58ace1aa818ab3d76386cc63e7982 /draw | |
parent | 772524c3776ab6b2dbb677acb84127030b9f49d2 (diff) | |
download | mupdf-bfd1effe99d5038577cdc0be889e5424613f3c08.tar.xz |
Squash 2 const warnings.
Add some more consts's and use void *'s where appropriate.
Diffstat (limited to 'draw')
-rw-r--r-- | draw/draw_path.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/draw/draw_path.c b/draw/draw_path.c index 2a0c20ab..1d0ef35a 100644 --- a/draw/draw_path.c +++ b/draw/draw_path.c @@ -137,7 +137,7 @@ struct sctx int dot; int from_bezier; - float *dash_list; + const float *dash_list; float dash_phase; int dash_len; int toggle, cap; @@ -541,7 +541,7 @@ fz_stroke_bezier(struct sctx *s, } void -fz_flatten_stroke_path(fz_gel *gel, fz_path *path, fz_stroke_state *stroke, const fz_matrix *ctm, float flatness, float linewidth) +fz_flatten_stroke_path(fz_gel *gel, fz_path *path, const fz_stroke_state *stroke, const fz_matrix *ctm, float flatness, float linewidth) { struct sctx s; fz_point p0, p1, p2, p3; @@ -747,7 +747,7 @@ fz_dash_bezier(struct sctx *s, } void -fz_flatten_dash_path(fz_gel *gel, fz_path *path, fz_stroke_state *stroke, const fz_matrix *ctm, float flatness, float linewidth) +fz_flatten_dash_path(fz_gel *gel, fz_path *path, const fz_stroke_state *stroke, const fz_matrix *ctm, float flatness, float linewidth) { struct sctx s; fz_point p0, p1, p2, p3, beg; |