[cairo-commit] pycairo/test cairo_image_surface_create_for_data.py, 1.1, 1.2

Steve Chaplin commit at pdx.freedesktop.org
Fri Apr 15 11:11:25 PDT 2005


Committed by: stevech1097

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

Modified Files:
	cairo_image_surface_create_for_data.py 
Log Message:
SC 2005/04/15

Index: cairo_image_surface_create_for_data.py
===================================================================
RCS file: /cvs/cairo/pycairo/test/cairo_image_surface_create_for_data.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cairo_image_surface_create_for_data.py	4 Apr 2005 17:19:27 -0000	1.1
+++ cairo_image_surface_create_for_data.py	15 Apr 2005 18:11:23 -0000	1.2
@@ -9,8 +9,8 @@
 
 data = array.array('c', 'a' * WIDTH * HEIGHT * 4)
 stride = WIDTH * 4
-surface = cairo.Surface.create_for_data(data, cairo.FORMAT_ARGB32,
-                                        WIDTH, HEIGHT, stride);
+surface = cairo.ImageSurface.create_for_data(data, cairo.FORMAT_ARGB32,
+                                             WIDTH, HEIGHT, stride);
 ctx = cairo.Context()
 ctx.set_target_surface(surface)
 




More information about the cairo-commit mailing list