Index: fbcompose.c =================================================================== RCS file: /cvs/xorg/xc/programs/Xserver/fb/fbcompose.c,v retrieving revision 1.24 diff -u -p -u -r1.24 fbcompose.c --- fbcompose.c 4 Oct 2005 03:44:14 -0000 1.24 +++ fbcompose.c 7 Dec 2005 19:40:36 -0000 @@ -1038,7 +1038,7 @@ static FASTCALL void fbStore_r8g8b8 (FbBits *bits, const CARD32 *values, int x, int width, miIndexedPtr indexed) { int i; - CARD8 *pixel = ((CARD8 *) bits) + x; + CARD8 *pixel = ((CARD8 *) bits) + 3*x; for (i = 0; i < width; ++i) { Store24(pixel, values[i]); pixel += 3; @@ -1049,7 +1049,7 @@ static FASTCALL void fbStore_b8g8r8 (FbBits *bits, const CARD32 *values, int x, int width, miIndexedPtr indexed) { int i; - CARD8 *pixel = ((CARD8 *) bits) + x; + CARD8 *pixel = ((CARD8 *) bits) + 3*x; for (i = 0; i < width; ++i) { #if IMAGE_BYTE_ORDER == MSBFirst *pixel++ = Blue(values[i]);