[cairo-commit] [cairo-www] src/pycairo

Carl Worth cworth at freedesktop.org
Sun Aug 1 09:54:57 PDT 2010


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

New commits:
commit 172caf4c1139e3bbc6b3e5a54d9ffe2ad43732a8
Author: ross9885 <ross9885 at web>
Date:   Sun Aug 1 09:54:56 2010 -0700

    Removed a redundant division by one.

diff --git a/src/pycairo/tutorial.mdwn b/src/pycairo/tutorial.mdwn
index 225545d..e4ba239 100644
--- a/src/pycairo/tutorial.mdwn
+++ b/src/pycairo/tutorial.mdwn
@@ -42,7 +42,7 @@ On initializing the cairo.Context, we set its target back end, supplying a few d
 	surface = cairo.ImageSurface (cairo.FORMAT_ARGB32, WIDTH, HEIGHT)
 	ctx = cairo.Context (surface)
 
-	ctx.scale (WIDTH/1.0, HEIGHT/1.0) # Normalizing the canvas
+	ctx.scale (WIDTH, HEIGHT) # Normalizing the canvas
 
 	pat = cairo.LinearGradient (0.0, 0.0, 0.0, 1.0)
 	pat.add_color_stop_rgba (1, 0.7, 0, 0, 0.5) # First stop, 50% opacity


More information about the cairo-commit mailing list