From a982fe2e807f80c8a6478c358b3875535c9346b4 Mon Sep 17 00:00:00 2001 From: truelight Date: Wed, 20 Jun 2007 12:09:47 +0000 Subject: [PATCH] (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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/blitter/32bpp_anim.cpp b/src/blitter/32bpp_anim.cpp index f18424b5c4..c27377bf01 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++) {