diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-02-03 22:55:53 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-02-07 20:28:09 +0100 |
commit | 5f039f0f894082c383884595220f6f0368ab72cf (patch) | |
tree | 4a77d3ac440d12e7138366d531ca7b1d85a9a6bd /test/mesh-pattern-accuracy.c | |
parent | fda784793edc3da789954df7fc2f0c86d9ed4f94 (diff) | |
download | cairo-5f039f0f894082c383884595220f6f0368ab72cf.tar.gz |
mesh: Rename cairo_pattern_mesh_* functions to cairo_mesh_pattern_*
This is consistent with the naming of most cairo types/functions
(example: cairo_foo_surface_*).
The substitution in the code has been performed using:
sed -i 's/cairo_pattern_mesh_/cairo_mesh_pattern_/' <files>
Diffstat (limited to 'test/mesh-pattern-accuracy.c')
-rw-r--r-- | test/mesh-pattern-accuracy.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/test/mesh-pattern-accuracy.c b/test/mesh-pattern-accuracy.c index 0f756c570..92e152339 100644 --- a/test/mesh-pattern-accuracy.c +++ b/test/mesh-pattern-accuracy.c @@ -49,38 +49,38 @@ draw (cairo_t *cr, int width, int height) pattern = cairo_pattern_create_mesh (); - cairo_pattern_mesh_begin_patch (pattern); + cairo_mesh_pattern_begin_patch (pattern); - cairo_pattern_mesh_move_to (pattern, 0, 0); - cairo_pattern_mesh_line_to (pattern, 1, 0); - cairo_pattern_mesh_line_to (pattern, 1, 1); - cairo_pattern_mesh_line_to (pattern, 0, 1); + cairo_mesh_pattern_move_to (pattern, 0, 0); + cairo_mesh_pattern_line_to (pattern, 1, 0); + cairo_mesh_pattern_line_to (pattern, 1, 1); + cairo_mesh_pattern_line_to (pattern, 0, 1); - cairo_pattern_mesh_set_corner_color_rgb (pattern, 0, 0, 0, 0); - cairo_pattern_mesh_set_corner_color_rgb (pattern, 1, 1, 1, 1); - cairo_pattern_mesh_set_corner_color_rgb (pattern, 2, 0, 0, 0); - cairo_pattern_mesh_set_corner_color_rgb (pattern, 3, 1, 1, 1); + cairo_mesh_pattern_set_corner_color_rgb (pattern, 0, 0, 0, 0); + cairo_mesh_pattern_set_corner_color_rgb (pattern, 1, 1, 1, 1); + cairo_mesh_pattern_set_corner_color_rgb (pattern, 2, 0, 0, 0); + cairo_mesh_pattern_set_corner_color_rgb (pattern, 3, 1, 1, 1); - cairo_pattern_mesh_end_patch (pattern); + cairo_mesh_pattern_end_patch (pattern); - cairo_pattern_mesh_begin_patch (pattern); + cairo_mesh_pattern_begin_patch (pattern); /* A small 1x1 red patch, that should be rendered as a 2x2 red * square in the center of the image */ offset = 0.5 / SIZE; - cairo_pattern_mesh_move_to (pattern, 0.5 + offset, 0.5 + offset); - cairo_pattern_mesh_line_to (pattern, 0.5 + offset, 0.5 - offset); - cairo_pattern_mesh_line_to (pattern, 0.5 - offset, 0.5 - offset); - cairo_pattern_mesh_line_to (pattern, 0.5 - offset, 0.5 + offset); + cairo_mesh_pattern_move_to (pattern, 0.5 + offset, 0.5 + offset); + cairo_mesh_pattern_line_to (pattern, 0.5 + offset, 0.5 - offset); + cairo_mesh_pattern_line_to (pattern, 0.5 - offset, 0.5 - offset); + cairo_mesh_pattern_line_to (pattern, 0.5 - offset, 0.5 + offset); - cairo_pattern_mesh_set_corner_color_rgb (pattern, 0, 1, 0, 0); - cairo_pattern_mesh_set_corner_color_rgb (pattern, 1, 1, 0, 0); - cairo_pattern_mesh_set_corner_color_rgb (pattern, 2, 1, 0, 0); - cairo_pattern_mesh_set_corner_color_rgb (pattern, 3, 1, 0, 0); + cairo_mesh_pattern_set_corner_color_rgb (pattern, 0, 1, 0, 0); + cairo_mesh_pattern_set_corner_color_rgb (pattern, 1, 1, 0, 0); + cairo_mesh_pattern_set_corner_color_rgb (pattern, 2, 1, 0, 0); + cairo_mesh_pattern_set_corner_color_rgb (pattern, 3, 1, 0, 0); - cairo_pattern_mesh_end_patch (pattern); + cairo_mesh_pattern_end_patch (pattern); cairo_scale (cr, SIZE, SIZE); |