summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2010-05-30 16:52:09 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2010-06-18 20:33:02 -0400
commit4e1d4847c9199f96b73376bef061c6728742e621 (patch)
tree1fd9515d99af8e41e06c3b58b8cf40301f689060
parent445eb6385f60d09058826b44894e17165c91381c (diff)
When storing a g1 pixel, store the lowest bit, rather than comparing with 0.
-rw-r--r--pixman/pixman-access.c2
-rw-r--r--test/blitters-test.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/pixman/pixman-access.c b/pixman/pixman-access.c
index 809cc387..9f2af26b 100644
--- a/pixman/pixman-access.c
+++ b/pixman/pixman-access.c
@@ -2601,7 +2601,7 @@ store_scanline_g1 (bits_image_t * image,
#else
mask = 1 << ((i + x) & 0x1f);
#endif
- v = RGB24_TO_ENTRY_Y (indexed, values[i]) ? mask : 0;
+ v = RGB24_TO_ENTRY_Y (indexed, values[i]) & 0x1 ? mask : 0;
WRITE (image, pixel, (READ (image, pixel) & ~mask) | v);
}
diff --git a/test/blitters-test.c b/test/blitters-test.c
index 673e52f8..29c2515e 100644
--- a/test/blitters-test.c
+++ b/test/blitters-test.c
@@ -426,6 +426,6 @@ main (int argc, const char *argv[])
{
initialize_palette();
- return fuzzer_test_main("blitters", 2000000, 0x2CFE57ED,
+ return fuzzer_test_main("blitters", 2000000, 0xF3A16994,
test_composite, argc, argv);
}