changeset 18187:e571841f3655 draft

(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.
author peter1138 <peter1138@openttd.org>
date Tue, 11 Oct 2011 07:13:36 +0000
parents 9c112dc3dcec
children ad7b72f7cd8e
files src/blitter/32bpp_anim.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/blitter/32bpp_anim.cpp
+++ b/src/blitter/32bpp_anim.cpp
@@ -123,7 +123,7 @@
 								*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 @@
 					} 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 {