]> Joshua Wise's Git repositories - netwatch.git/blobdiff - video/text.c
Modify crc32 users to behave better when crcing multiple things into one CRC.
[netwatch.git] / video / text.c
index 25fe245dec4a551cb9d144cac9eb09f9b751afb9..7fe30c952e3a436ef0a01720c955450838dec2e0 100644 (file)
@@ -91,7 +91,7 @@ uint32_t text_checksum(int x, int y, int w, int h)
                cx = x;
                texty = cy / 14;
                textx = cx / 9;
-               cksm ^= crc32(video + texty * 160 + textx * 2, (w / 9 + 1) * 2);        /* Err on the side of 'too many'. */
+               cksm = crc32(video + texty * 160 + textx * 2, (w / 9) * 2 + 2, cksm);   /* Err on the side of 'too many'. */
        }
        
        smram_restore_state(old_state);
This page took 0.023313 seconds and 4 git commands to generate.