From: Søren Sandmann Pedersen Date: Tue, 19 Jun 2007 15:19:43 +0000 (-0400) Subject: Fix fbStore_b2g3r3(). Pointed out by Dan Amelang X-Git-Tag: pixman-0.9.4~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07e73371ef096b42d3a983266105b71ea01b4cc8;p=platform%2Fupstream%2Fpixman.git Fix fbStore_b2g3r3(). Pointed out by Dan Amelang --- diff --git a/pixman/pixman-compose.c b/pixman/pixman-compose.c index 63b1677..d870b2a 100644 --- a/pixman/pixman-compose.c +++ b/pixman/pixman-compose.c @@ -1404,7 +1404,8 @@ fbStore_r3g3b2 (pixman_image_t *image, uint8_t *pixel = ((uint8_t *) bits) + x; for (i = 0; i < width; ++i) { Split(READ(values + i)); - WRITE(pixel++, ((r ) & 0xe0) | + WRITE(pixel++, + ((r ) & 0xe0) | ((g >> 3) & 0x1c) | ((b >> 6) )); } @@ -1418,9 +1419,10 @@ fbStore_b2g3r3 (pixman_image_t *image, uint8_t *pixel = ((uint8_t *) bits) + x; for (i = 0; i < width; ++i) { Split(READ(values + i)); - WRITE(pixel++, ((b ) & 0xe0) | + WRITE(pixel++, + ((b ) & 0xc0) | ((g >> 3) & 0x1c) | - ((r >> 6) )); + ((r >> 5) )); } }