diff --git a/pixman/ChangeLog b/pixman/ChangeLog index 4b71721f9..2598f41fe 100644 --- a/pixman/ChangeLog +++ b/pixman/ChangeLog @@ -1,3 +1,10 @@ +2005-08-21 Billy Biggs + + Fix for bug #4140: + + * src/icrect.c: (pixman_fill_rect_8bpp): Dereference the pixel value + correctly on big endian systems. + 2005-08-18 Billy Biggs * src/fbmmx.c: (mmxCombineMaskU), (mmxCombineOverU): Special case diff --git a/pixman/src/icrect.c b/pixman/src/icrect.c index 95306790c..24512f4f2 100644 --- a/pixman/src/icrect.c +++ b/pixman/src/icrect.c @@ -109,12 +109,13 @@ pixman_fill_rect_8bpp (pixman_image_t *dst, 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; } }