From f823dfd9328f1aab0155257fcf9bb3aa45455867 Mon Sep 17 00:00:00 2001 From: Billy Biggs Date: Sat, 20 Aug 2005 21:28:57 +0000 Subject: [PATCH] Fix for bug #4140: Dereference the pixel value correctly on big endian systems. --- pixman/ChangeLog | 7 +++++++ pixman/src/icrect.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) 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; } }