diff options
author | peter1138 <peter1138@openttd.org> | 2011-10-11 07:13:36 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2011-10-11 07:13:36 +0000 |
commit | 719f6618d773a5ad848920949b0470122080ac37 (patch) | |
tree | e2293858b1989195f32bcb07f86956e1e702ce55 /src/blitter/32bpp_anim.cpp | |
parent | a90e577485055975a3f8639cfa8d080333ff20b6 (diff) | |
download | openttd-719f6618d773a5ad848920949b0470122080ac37.tar.xz |
(svn r23016) -Change: Disable palette animation for pixels with alpha, as the alpha and previous colour information will be lost when the palette is animated.
Diffstat (limited to 'src/blitter/32bpp_anim.cpp')
-rw-r--r-- | src/blitter/32bpp_anim.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blitter/32bpp_anim.cpp b/src/blitter/32bpp_anim.cpp index 23dbc35c6..17ea0af72 100644 --- a/src/blitter/32bpp_anim.cpp +++ b/src/blitter/32bpp_anim.cpp @@ -123,7 +123,7 @@ inline void Blitter_32bppAnim::Draw(const Blitter::BlitterParams *bp, ZoomLevel *anim = 0; } else { uint r = remap[m]; - *anim = r; + *anim = 0; if (r != 0) *dst = ComposeColourPANoCheck(this->LookupColourInPalette(r), src_px->a, *dst); } anim++; @@ -173,7 +173,7 @@ inline void Blitter_32bppAnim::Draw(const Blitter::BlitterParams *bp, ZoomLevel } else { do { uint m = *src_n++; - *anim++ = m; + *anim++ = 0; if (m >= PALETTE_ANIM_START) { *dst = ComposeColourPANoCheck(this->LookupColourInPalette(m), src_px->a, *dst); } else { |