[cairo-commit] pycairo/cairo pycairo-context.c,1.65,1.66

Steve Chaplin commit at pdx.freedesktop.org
Sun Sep 4 18:22:20 PDT 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo/cairo
In directory gabe:/tmp/cvs-serv10605/cairo

Modified Files:
	pycairo-context.c 
Log Message:
'SC'

Index: pycairo-context.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-context.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- pycairo-context.c	29 Aug 2005 14:52:30 -0000	1.65
+++ pycairo-context.c	5 Sep 2005 01:22:18 -0000	1.66
@@ -908,9 +908,10 @@
 static PyObject *
 pycairo_set_source_rgba (PycairoContext *o, PyObject *args)
 {
-    double red, green, blue, alpha;
+    double red, green, blue;
+    double alpha = 1.0;
 
-    if (!PyArg_ParseTuple (args, "dddd:Context.set_source_rgba",
+    if (!PyArg_ParseTuple (args, "ddd|d:Context.set_source_rgba",
 			   &red, &green, &blue, &alpha))
 	return NULL;
 



More information about the cairo-commit mailing list