[cairo-commit] pycairo/cairo pycairo-surface.c,1.95,1.96

Steve Chaplin commit at pdx.freedesktop.org
Tue Mar 3 04:40:26 PST 2009


Committed by: stevech1097

Update of /cvs/cairo/pycairo/cairo
In directory kemper:/tmp/cvs-serv4014/cairo

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

Index: pycairo-surface.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-surface.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- pycairo-surface.c	16 Feb 2009 12:09:11 -0000	1.95
+++ pycairo-surface.c	3 Mar 2009 12:40:23 -0000	1.96
@@ -552,15 +552,15 @@
 }
 
 static PyObject *
-image_surface_get_width (PycairoImageSurface *o)
+image_surface_get_stride (PycairoImageSurface *o)
 {
-    return PyInt_FromLong (cairo_image_surface_get_width (o->surface));
+    return PyInt_FromLong (cairo_image_surface_get_stride (o->surface));
 }
 
 static PyObject *
-image_surface_get_stride (PycairoImageSurface *o)
+image_surface_get_width (PycairoImageSurface *o)
 {
-    return PyInt_FromLong (cairo_image_surface_get_stride (o->surface));
+    return PyInt_FromLong (cairo_image_surface_get_width (o->surface));
 }
 
 
@@ -635,8 +635,8 @@
     {"get_data",      (PyCFunction)image_surface_get_data,        METH_NOARGS},
     {"get_format",    (PyCFunction)image_surface_get_format,      METH_NOARGS},
     {"get_height",    (PyCFunction)image_surface_get_height,      METH_NOARGS},
-    {"get_width",     (PyCFunction)image_surface_get_width,       METH_NOARGS},
     {"get_stride",    (PyCFunction)image_surface_get_stride,      METH_NOARGS},
+    {"get_width",     (PyCFunction)image_surface_get_width,       METH_NOARGS},
     {NULL, NULL, 0, NULL},
 };
 



More information about the cairo-commit mailing list