[cairo-commit] pycairo/cairo pycairo-context.c, 1.42,
1.43 pycairo-surface.c, 1.30, 1.31
Steve Chaplin
commit at pdx.freedesktop.org
Thu May 5 19:00:43 PDT 2005
Committed by: stevech1097
Update of /cvs/cairo/pycairo/cairo
In directory gabe:/tmp/cvs-serv6646/cairo
Modified Files:
pycairo-context.c pycairo-surface.c
Log Message:
SC
Index: pycairo-context.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-context.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- pycairo-context.c 4 May 2005 04:10:00 -0000 1.42
+++ pycairo-context.c 6 May 2005 02:00:41 -0000 1.43
@@ -460,6 +460,7 @@
if (!surface)
return PyErr_NoMemory();
+ /* should be ImageSurface or PDFSurface etc */
py_surface = PyCairoSurface_FromSurface(surface, NULL);
if (py_surface)
cairo_surface_reference(surface);
Index: pycairo-surface.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-surface.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- pycairo-surface.c 28 Apr 2005 01:46:36 -0000 1.30
+++ pycairo-surface.c 6 May 2005 02:00:41 -0000 1.31
@@ -115,6 +115,9 @@
if (!surface)
return PyErr_NoMemory();
+ /* bug #2765 - "How do we identify surface types?"
+ * determine surface type and use PyCairoImageSurface_FromImageSurface() etc
+ */
s2 = PyCairoSurface_FromSurface(surface, NULL);
if (!s2)
cairo_surface_destroy(surface);
More information about the cairo-commit
mailing list