[cairo-commit] cairo/pixman/src icrect.c,1.17,1.18

Billy Biggs commit at pdx.freedesktop.org
Sun Aug 21 14:28:59 EST 2005


Committed by: vektor

Update of /cvs/cairo/cairo/pixman/src
In directory gabe:/tmp/cvs-serv27677/src

Modified Files:
	icrect.c 
Log Message:
	Fix for bug #4140:

	* src/icrect.c: (pixman_fill_rect_8bpp): Dereference the pixel value
	correctly on big endian systems.



Index: icrect.c
===================================================================
RCS file: /cvs/cairo/cairo/pixman/src/icrect.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- icrect.c	12 Aug 2005 04:07:26 -0000	1.17
+++ icrect.c	21 Aug 2005 04:28:57 -0000	1.18
@@ -109,12 +109,13 @@
 		       uint16_t	       height,
 		       pixman_bits_t  *pixel)
 {
+    int value = (int) (*pixel);
     char *line;
 
     line = (char *)dst->pixels->data +
 	xDst + yDst * dst->pixels->stride;
     while (height-- > 0) {
-	memset (line, *(char *)pixel, width);
+	memset (line, value, width);
 	line += dst->pixels->stride;
     }
 }



More information about the cairo-commit mailing list