Changeset - r6979:c72bc9ef55cf
[Not reviewed]
master
0 1 0
truelight - 17 years ago 2007-06-20 12:09:47
truelight@openttd.org
(svn r10235) -Fix: the 32bpp-anim blitter repainted pixel color 0, which is transparency and therefor should never be repainted (spotted by Rubidium)
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/blitter/32bpp_anim.cpp
Show inline comments
 
@@ -166,6 +166,9 @@ void Blitter_32bppAnim::PaletteAnimate(u
 
{
 
	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++) {
0 comments (0 inline, 0 general)