[cairo-commit] pycairo/examples/cairo_snippets/snippets curve_rectangle.py, 1.2, 1.3

Steve Chaplin commit at pdx.freedesktop.org
Sun May 15 18:04:39 PDT 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo/examples/cairo_snippets/snippets
In directory gabe:/tmp/cvs-serv26253/examples/cairo_snippets/snippets

Modified Files:
	curve_rectangle.py 
Log Message:
SC

Index: curve_rectangle.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/curve_rectangle.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- curve_rectangle.py	15 Apr 2005 06:53:05 -0000	1.2
+++ curve_rectangle.py	16 May 2005 01:04:34 -0000	1.3
@@ -47,10 +47,7 @@
 
 cr.close_path ()
 
-#/* and fill/stroke it */
-cr.save ()
 cr.set_source_rgb (0.5,0.5,1)
-cr.fill ()
-cr.restore ()
-cr.set_source_rgba (0.5, 0,0,0.5)
+cr.fill_preserve ()
+cr.set_source_rgba (0.5,0,0,0.5)
 cr.stroke ()




More information about the cairo-commit mailing list