When storing a g1 pixel, store the lowest bit, rather than comparing with 0.
authorSøren Sandmann Pedersen <ssp@redhat.com>
Sun, 30 May 2010 20:52:09 +0000 (16:52 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sat, 19 Jun 2010 00:33:02 +0000 (20:33 -0400)
pixman/pixman-access.c
test/blitters-test.c

index 809cc38..9f2af26 100644 (file)
@@ -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);
     }
index 673e52f..29c2515 100644 (file)
@@ -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);
 }