mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-09 15:50:30 +01:00
Fix for bug #4140:
Dereference the pixel value correctly on big endian systems.
This commit is contained in:
parent
d1bdd1313e
commit
f823dfd932
2 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue