[cairo-commit] pycairo/test isurface_create_for_data1.py,1.2,1.3

Steve Chaplin commit at pdx.freedesktop.org
Thu Dec 7 06:40:36 PST 2006


Committed by: stevech1097

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

Modified Files:
	isurface_create_for_data1.py 
Log Message:
'SC'

Index: isurface_create_for_data1.py
===================================================================
RCS file: /cvs/cairo/pycairo/test/isurface_create_for_data1.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- isurface_create_for_data1.py	7 Dec 2006 14:39:16 -0000	1.2
+++ isurface_create_for_data1.py	7 Dec 2006 14:40:32 -0000	1.3
@@ -13,6 +13,7 @@
         offset = (x + (y * imgW)) * 4
         alpha = y
 
+        # cairo.FORMAT_ARGB32 use pre-multiplied alpha
         data[offset+0] = int((x * alpha)/255)
         data[offset+1] = int((y * alpha)/255)
         data[offset+2] = 0



More information about the cairo-commit mailing list