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

Carl Worth cworth at freedesktop.org
Thu Aug 2 07:11:22 PDT 2007


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

New commits:
commit b2684e2eef2e1f16bf022c7f14154eae95a6d382
Author: geminitojanus <geminitojanus at gmail.com>
Date:   Thu Aug 2 07:11:19 2007 -0700

    cairo_device_to_user_distance() requires double* not double; added references respectively.

diff --git a/src/tutorial.mdwn b/src/tutorial.mdwn
index 4131bfb..62ee22e 100644
--- a/src/tutorial.mdwn
+++ b/src/tutorial.mdwn
@@ -630,7 +630,7 @@ with the help of `cairo_device_to_user_distance()` (assuming that the
 pixel width is `1`):
 
 	double ux=1, uy=1;
-	cairo_device_to_user_distance (cr, ux, uy);
+	cairo_device_to_user_distance (cr, &ux, &uy);
 	if (ux < uy)
 		ux = uy;
 	cairo_set_line_width (cr, ux);


More information about the cairo-commit mailing list