diff options
author | Adam Jackson <ajax@nwnk.net> | 2005-12-08 19:33:09 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2005-12-08 19:33:09 +0000 |
commit | d6f98cbdb8fb74c504a92939d3741420eeed7110 (patch) | |
tree | d42863dc46fbf98dd0ebcbae64ff83d3bdb7c714 /fb | |
parent | f9ccebe8c5cd674c08fe8ed860d1c456e42c937e (diff) |
Bug #3944: Fix 24bpp packed pixel. (Søren Sandmann Pedersen)
Diffstat (limited to 'fb')
-rw-r--r-- | fb/fbcompose.c | 4 |
1 files 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]); |