Fix for bug #4140:

Dereference the pixel value correctly on big endian systems.
This commit is contained in:
Billy Biggs 2005-08-20 21:28:57 +00:00
parent d1bdd1313e
commit f823dfd932
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2005-08-21 Billy Biggs <vektor@dumbterm.net>
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 <vektor@dumbterm.net>
* src/fbmmx.c: (mmxCombineMaskU), (mmxCombineOverU): Special case

View file

@ -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;
}
}