From d6f98cbdb8fb74c504a92939d3741420eeed7110 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 8 Dec 2005 19:33:09 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20#3944:=20Fix=2024bpp=20packed=20pixel.=20?= =?UTF-8?q?(S=C3=B8ren=20Sandmann=20Pedersen)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fb/fbcompose.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fb/fbcompose.c b/fb/fbcompose.c index 2e6853c4a..31feea625 100644 --- a/fb/fbcompose.c +++ b/fb/fbcompose.c @@ -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]);