diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-18 18:20:16 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-22 23:01:49 +0000 |
commit | cfd204824fada7d2b4bcf4994c4200ae9b5a8b26 (patch) | |
tree | c4497f1fca6f7230666635b1779c75c4b14cd91f /src/cairo-surface-wrapper.c | |
parent | 3e17c559b04e2df208f28125746d7e0acfb4b476 (diff) | |
download | cairo-cfd204824fada7d2b4bcf4994c4200ae9b5a8b26.tar.gz |
Constify stroke style and matrices.
As a simple step to ensure that we do not inadvertently modify (or at least
generate compiler warns if we try) user data, mark the incoming style
and matrices as constant.
Diffstat (limited to 'src/cairo-surface-wrapper.c')
-rw-r--r-- | src/cairo-surface-wrapper.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cairo-surface-wrapper.c b/src/cairo-surface-wrapper.c index d03c20308..468a8d0eb 100644 --- a/src/cairo-surface-wrapper.c +++ b/src/cairo-surface-wrapper.c @@ -193,9 +193,9 @@ _cairo_surface_wrapper_stroke (cairo_surface_wrapper_t *wrapper, cairo_operator_t op, const cairo_pattern_t *source, cairo_path_fixed_t *path, - cairo_stroke_style_t *stroke_style, - cairo_matrix_t *ctm, - cairo_matrix_t *ctm_inverse, + const cairo_stroke_style_t *stroke_style, + const cairo_matrix_t *ctm, + const cairo_matrix_t *ctm_inverse, double tolerance, cairo_antialias_t antialias, cairo_clip_t *clip) @@ -273,9 +273,9 @@ _cairo_surface_wrapper_fill_stroke (cairo_surface_wrapper_t *wrapper, cairo_path_fixed_t *path, cairo_operator_t stroke_op, const cairo_pattern_t *stroke_source, - cairo_stroke_style_t *stroke_style, - cairo_matrix_t *stroke_ctm, - cairo_matrix_t *stroke_ctm_inverse, + const cairo_stroke_style_t *stroke_style, + const cairo_matrix_t *stroke_ctm, + const cairo_matrix_t *stroke_ctm_inverse, double stroke_tolerance, cairo_antialias_t stroke_antialias, cairo_clip_t *clip) |