[cairo-commit] libpixman/src ictrap.c,1.21,1.22 pixman.h,1.17,1.18

David Reveman commit at pdx.freedesktop.org
Thu Mar 3 18:02:25 PST 2005


Committed by: davidr

Update of /cvs/cairo/libpixman/src
In directory gabe:/tmp/cvs-serv28306/src

Modified Files:
	ictrap.c pixman.h 
Log Message:
Add pixman_add_trapezoids

Index: ictrap.c
===================================================================
RCS file: /cvs/cairo/libpixman/src/ictrap.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- ictrap.c	3 Mar 2005 22:27:31 -0000	1.21
+++ ictrap.c	4 Mar 2005 02:02:23 -0000	1.22
@@ -166,3 +166,19 @@
 
     pixman_format_destroy (format);
 }
+
+void
+pixman_add_trapezoids (pixman_image_t		*dst,
+		       int			x_off,
+		       int			y_off,
+		       const pixman_trapezoid_t	*traps,
+		       int			ntraps)
+{
+    for (; ntraps; ntraps--, traps++)
+    {
+	if (!xTrapezoidValid (traps))
+	    continue;
+
+	fbRasterizeTrapezoid (dst, traps, x_off, y_off);
+    }
+}

Index: pixman.h
===================================================================
RCS file: /cvs/cairo/libpixman/src/pixman.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- pixman.h	2 Mar 2005 15:43:33 -0000	1.17
+++ pixman.h	4 Mar 2005 02:02:23 -0000	1.18
@@ -414,6 +414,13 @@
 			     const pixman_trapezoid_t *traps,
 			     int			ntrap);
 
+void
+pixman_add_trapezoids (pixman_image_t		*dst,
+		       int			x_off,
+		       int			y_off,
+		       const pixman_trapezoid_t	*traps,
+		       int			ntraps);
+
 /* ictri.c */
 
 void




More information about the cairo-commit mailing list