Changeset - r18177:e1feff28babb
[Not reviewed]
master
0 1 0
peter1138 - 13 years ago 2011-10-11 07:13:36
peter1138@openttd.org
(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.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/blitter/32bpp_anim.cpp
Show inline comments
 
@@ -123,7 +123,7 @@ inline void Blitter_32bppAnim::Draw(cons
 
								*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(cons
 
					} 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 {
0 comments (0 inline, 0 general)