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

Carl Worth cworth at freedesktop.org
Fri Aug 3 00:19:24 PDT 2007


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

New commits:
commit f700cc6561d86c5b4fa037c4e4a632626ebdb841
Author: nis.martensen <nis.martensen at web.de>
Date:   Fri Aug 3 00:19:18 2007 -0700

    fix piece of python

diff --git a/src/tutorial.mdwn b/src/tutorial.mdwn
index 62ee22e..36f3082 100644
--- a/src/tutorial.mdwn
+++ b/src/tutorial.mdwn
@@ -587,7 +587,7 @@ three ways:
 
  1. `cairo_translate (cr, 10, 10); cairo_scale (cr, 100, 100);`
  2. `cairo_scale (cr, 100, 100); cairo_translate (cr, 0.1, 0.1);`
- 3. `cairo_transform (cr, cairo.Matrix (100, 0, 0, 100, 10, 10));`
+ 3. `cairo_matrix_t mat; cairo_matrix_init (&mat, 100, 0, 0, 100, 10, 10); cairo_transform (cr, &mat);`
 
 Use the first when relevant because it is often the most readable; use the
 third when necessary to access additional control not available with the


More information about the cairo-commit mailing list