[cairo-commit] libpixman/src icrect.c,1.11,1.12

Carl Worth commit at pdx.freedesktop.org
Thu Dec 23 11:00:04 PST 2004


Committed by: cworth

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

Modified Files:
	icrect.c 
Log Message:

        * src/icrect.c (pixman_color_rects): Fix to actually call
        pixman_fill_rect_32bpp in the 32 bpp case. Thanks to
        TOKUNAGA Hiroyuki <tkng at xem.jp>.
        (pixman_fill_rect_8bpp, pixman_fill_rect_32bpp): Fix typo in
        naming: bbp -> bpp.


Index: icrect.c
===================================================================
RCS file: /cvs/cairo/libpixman/src/icrect.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- icrect.c	20 Dec 2004 14:15:21 -0000	1.11
+++ icrect.c	23 Dec 2004 19:00:01 -0000	1.12
@@ -31,7 +31,7 @@
 
 
 static void
-pixman_fill_rect_8bbp (pixman_image_t *dst,
+pixman_fill_rect_8bpp (pixman_image_t *dst,
 		       int16_t	       xDst,
 		       int16_t	       yDst,
 		       uint16_t	       width,
@@ -49,7 +49,7 @@
 }
 
 static void
-pixman_fill_rect_32bbp (pixman_image_t *dst,
+pixman_fill_rect_32bpp (pixman_image_t *dst,
 			int16_t	        xDst,
 			int16_t	        yDst, 
 			uint16_t	width,
@@ -173,9 +173,9 @@
     clipped_rects = pixman_region_rects (rects_as_region);
 
     if (dst->pixels->bpp == 8)
-	func = pixman_fill_rect_8bbp;
-    else if (dst->pixels->bpp == 8)
-	func = pixman_fill_rect_32bbp;
+	func = pixman_fill_rect_8bpp;
+    else if (dst->pixels->bpp == 32)
+	func = pixman_fill_rect_32bpp;
     else 
 	func = pixman_fill_rect_general;
     




More information about the cairo-commit mailing list