Also store the g3 part correctly
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Tue, 19 Jun 2007 15:23:05 +0000 (11:23 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Tue, 19 Jun 2007 15:23:05 +0000 (11:23 -0400)
pixman/pixman-compose.c

index d870b2a..24402da 100644 (file)
@@ -1421,7 +1421,7 @@ fbStore_b2g3r3 (pixman_image_t *image,
        Split(READ(values + i));
        WRITE(pixel++,
              ((b     ) & 0xc0) |
-             ((g >> 3) & 0x1c) |
+             ((g >> 2) & 0x1c) |
              ((r >> 5)       ));
     }
 }