(svn r10235) -Fix: the 32bpp-anim blitter repainted pixel color 0, which is transparency and therefor should never be repainted (spotted by Rubidium)
authortruelight
Wed, 20 Jun 2007 12:09:47 +0000
changeset 7475 7a7a5b807fcb
parent 7474 55bfc6938288
child 7476 7f086e4b2a76
(svn r10235) -Fix: the 32bpp-anim blitter repainted pixel color 0, which is transparency and therefor should never be repainted (spotted by Rubidium)
src/blitter/32bpp_anim.cpp
--- a/src/blitter/32bpp_anim.cpp	Wed Jun 20 10:30:25 2007 +0000
+++ b/src/blitter/32bpp_anim.cpp	Wed Jun 20 12:09:47 2007 +0000
@@ -166,6 +166,9 @@
 {
 	uint8 *anim = this->anim_buf;
 
+	/* Never repaint the transparency pixel */
+	if (start == 0) start++;
+
 	/* Let's walk the anim buffer and try to find the pixels */
 	for (int y = 0; y < this->anim_buf_height; y++) {
 		for (int x = 0; x < this->anim_buf_width; x++) {