[cairo-commit] pycairo/cairo pycairo-surface.c, 1.46, 1.47 cairomodule.c, 1.42, 1.43

Steve Chaplin commit at pdx.freedesktop.org
Tue Jul 12 07:06:13 PDT 2005


Committed by: stevech1097

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

Modified Files:
	pycairo-surface.c cairomodule.c 
Log Message:
SC

Index: pycairo-surface.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-surface.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- pycairo-surface.c	20 Jun 2005 07:17:11 -0000	1.46
+++ pycairo-surface.c	12 Jul 2005 14:06:11 -0000	1.47
@@ -106,14 +106,15 @@
 surface_create_similar (PycairoSurface *o, PyObject *args)
 {
     cairo_surface_t *surface;
-    cairo_format_t format;
+    cairo_content_t content;
     int width, height;
 
     if (!PyArg_ParseTuple (args, "iii:Surface.create_similar",
-			   &format, &width, &height))
+			   &content, &width, &height))
 	return NULL;
 
-    surface = cairo_surface_create_similar (o->surface, format, width, height);
+    surface = cairo_surface_create_similar (o->surface, content, 
+					    width, height);
     if (!surface)
 	return PyErr_NoMemory();
     /* bug #2765 - "How do we identify surface types?"

Index: cairomodule.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/cairomodule.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- cairomodule.c	2 Jun 2005 00:18:27 -0000	1.42
+++ cairomodule.c	12 Jul 2005 14:06:11 -0000	1.43
@@ -247,6 +247,10 @@
     CONSTANT(FORMAT_A8);
     CONSTANT(FORMAT_A1);
 
+    CONSTANT(CONTENT_COLOR);
+    CONSTANT(CONTENT_ALPHA);
+    CONSTANT(CONTENT_COLOR_ALPHA);
+
     CONSTANT(OPERATOR_CLEAR);
 
     CONSTANT(OPERATOR_SOURCE);




More information about the cairo-commit mailing list