[cairo-commit] [cairo-www] src/tutorial.mdwn

Carl Worth cworth at freedesktop.org
Thu Aug 30 11:38:24 PDT 2007


 src/tutorial.mdwn |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5ffc1610a20349f8af5ca8644e963d3200c096bd
Author: Carl Worth <cworth at annarchy.freedesktop.org>
Date:   Thu Aug 30 11:38:24 2007 -0700

    web commit by ddhill: Correcting argument in example - cairo_pattern_create_linear

diff --git a/src/tutorial.mdwn b/src/tutorial.mdwn
index 36f3082..d44a1b9 100644
--- a/src/tutorial.mdwn
+++ b/src/tutorial.mdwn
@@ -343,7 +343,7 @@ src="setsourcegradient.png" alt="" /></a></div>
 	cairo_set_source (cr, radpat);
 	cairo_fill (cr);
 
-	linpat = cairo_pattern_create_linear (cr, 0.25, 0.35, 0.75, 0.65);
+	linpat = cairo_pattern_create_linear (0.25, 0.35, 0.75, 0.65);
 	cairo_pattern_add_color_stop_rgba (linpat, 0.00,  1, 1, 1, 0);
 	cairo_pattern_add_color_stop_rgba (linpat, 0.25,  0, 1, 0, 0.5);
 	cairo_pattern_add_color_stop_rgba (linpat, 0.50,  1, 1, 1, 0);


More information about the cairo-commit mailing list