Ensure that only the low 4 bit of 4 bit pixels are stored.
authorSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 15 Mar 2010 15:51:09 +0000 (11:51 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 17 Mar 2010 15:02:58 +0000 (11:02 -0400)
commitde27f45ddd46fc48ec9598f2f177155328d55580
tree71e90213e5f33a1e638265f2c45163556af566e0
parent6532f8488abffb89501cb76de7d80b8ab2d49aed
Ensure that only the low 4 bit of 4 bit pixels are stored.

In some cases we end up trying to use the STORE_4 macro with an 8 bit
values, which resulted in other pixels getting overwritten. Fix this
by always masking off the low 4 bits.

This fixes blitters-test on big-endian machines.
pixman/pixman-access.c
test/blitters-test.c