summaryrefslogtreecommitdiff
path: root/src/blitter
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-20 12:09:47 +0000
committertruelight <truelight@openttd.org>2007-06-20 12:09:47 +0000
commit59b54b3b024145219878fb3906468de085587e20 (patch)
treed96309458bf75b22cc20ef4b2183b1a469deab3c /src/blitter
parent0e4a7125aed07b7d5517ab7cc63222f5b63cedb6 (diff)
downloadopenttd-59b54b3b024145219878fb3906468de085587e20.tar.xz
(svn r10235) -Fix: the 32bpp-anim blitter repainted pixel color 0, which is transparency and therefor should never be repainted (spotted by Rubidium)
Diffstat (limited to 'src/blitter')
-rw-r--r--src/blitter/32bpp_anim.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blitter/32bpp_anim.cpp b/src/blitter/32bpp_anim.cpp
index f18424b5c..c27377bf0 100644
--- a/src/blitter/32bpp_anim.cpp
+++ b/src/blitter/32bpp_anim.cpp
@@ -166,6 +166,9 @@ void Blitter_32bppAnim::PaletteAnimate(uint start, uint count)
{
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++) {