[cairo-commit] glitz/src glitz_pixel.c,1.18,1.19

David Reveman commit at pdx.freedesktop.org
Wed Mar 16 10:59:44 PST 2005


Committed by: davidr

Update of /cvs/cairo/glitz/src
In directory gabe:/tmp/cvs-serv26842/src

Modified Files:
	glitz_pixel.c 
Log Message:
Fix y-offset when returning pixel data in bottom to top scanline order

Index: glitz_pixel.c
===================================================================
RCS file: /cvs/cairo/glitz/src/glitz_pixel.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- glitz_pixel.c	10 Mar 2005 22:45:30 -0000	1.18
+++ glitz_pixel.c	16 Mar 2005 18:59:41 -0000	1.19
@@ -1092,6 +1092,9 @@
     dst_image.width = width;
     dst_image.height = height;
 
+    if (format->scanline_order == GLITZ_PIXEL_SCANLINE_ORDER_BOTTOM_UP)
+        src_y = src_h - src_y - height;
+
     _glitz_pixel_transform (transform,
                             &src_image,
                             &dst_image,




More information about the cairo-commit mailing list