summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-04-25 14:15:43 +0100
committerRobin Watts <robin.watts@artifex.com>2013-04-26 14:42:52 +0100
commitbfd1effe99d5038577cdc0be889e5424613f3c08 (patch)
tree0189d41857f58ace1aa818ab3d76386cc63e7982 /draw
parent772524c3776ab6b2dbb677acb84127030b9f49d2 (diff)
downloadmupdf-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.c6
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;