summaryrefslogtreecommitdiff
path: root/fb
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2005-12-08 19:33:09 +0000
committerAdam Jackson <ajax@nwnk.net>2005-12-08 19:33:09 +0000
commitd6f98cbdb8fb74c504a92939d3741420eeed7110 (patch)
treed42863dc46fbf98dd0ebcbae64ff83d3bdb7c714 /fb
parentf9ccebe8c5cd674c08fe8ed860d1c456e42c937e (diff)
Bug #3944: Fix 24bpp packed pixel. (Søren Sandmann Pedersen)
Diffstat (limited to 'fb')
-rw-r--r--fb/fbcompose.c4
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]);