summaryrefslogtreecommitdiff
path: root/src/cairo-pattern.c
diff options
context:
space:
mode:
authorNis Martensen <nis.martensen@web.de>2012-02-11 23:24:27 +0100
committerAndrea Canciani <ranma42@gmail.com>2012-02-12 09:07:48 +0100
commit76df401263a45881fec557396dd4895d0af540a3 (patch)
treebf37ac73f0d5d862ccd56c3434a5d25c9685cd61 /src/cairo-pattern.c
parent469994ac199179b40bafee951c92595706256cea (diff)
downloadcairo-76df401263a45881fec557396dd4895d0af540a3.tar.gz
doc: Fix pattern name mismatch
In the example code, the mesh pattern variable was named "mesh" and "pattern". Just use "pattern". Signed-off-by: Andrea Canciani <ranma42@gmail.com>
Diffstat (limited to 'src/cairo-pattern.c')
-rw-r--r--src/cairo-pattern.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index ea47b6a33..08942f9c2 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -939,10 +939,10 @@ static const int mesh_control_point_j[4] = { 1, 2, 2, 1 };
* cairo_mesh_pattern_begin_patch()/cairo_mesh_pattern_end_patch().
*
* <informalexample><programlisting>
- * cairo_pattern_t *mesh = cairo_mesh_pattern_create_mesh ();
+ * cairo_pattern_t *pattern = cairo_mesh_pattern_create_mesh ();
*
* /&ast; Add a Coons patch &ast;/
- * cairo_mesh_pattern_begin_patch (mesh);
+ * cairo_mesh_pattern_begin_patch (pattern);
* cairo_mesh_pattern_move_to (pattern, 0, 0);
* cairo_mesh_pattern_curve_to (pattern, 30, -30, 60, 30, 100, 0);
* cairo_mesh_pattern_curve_to (pattern, 60, 30, 130, 60, 100, 100);
@@ -952,17 +952,17 @@ static const int mesh_control_point_j[4] = { 1, 2, 2, 1 };
* cairo_mesh_pattern_set_corner_color_rgb (pattern, 1, 0, 1, 0);
* cairo_mesh_pattern_set_corner_color_rgb (pattern, 2, 0, 0, 1);
* cairo_mesh_pattern_set_corner_color_rgb (pattern, 3, 1, 1, 0);
- * cairo_mesh_pattern_end_patch (mesh);
+ * cairo_mesh_pattern_end_patch (pattern);
*
* /&ast; Add a Gouraud-shaded triangle &ast;/
- * cairo_mesh_pattern_begin_patch (mesh)
+ * cairo_mesh_pattern_begin_patch (pattern)
* cairo_mesh_pattern_move_to (pattern, 100, 100);
* cairo_mesh_pattern_line_to (pattern, 130, 130);
* cairo_mesh_pattern_line_to (pattern, 130, 70);
* cairo_mesh_pattern_set_corner_color_rgb (pattern, 0, 1, 0, 0);
* cairo_mesh_pattern_set_corner_color_rgb (pattern, 1, 0, 1, 0);
* cairo_mesh_pattern_set_corner_color_rgb (pattern, 2, 0, 0, 1);
- * cairo_mesh_pattern_end_patch (mesh)
+ * cairo_mesh_pattern_end_patch (pattern)
* </programlisting></informalexample>
*
* When two patches overlap, the last one that has been added is drawn