(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.

pull/155/head
peter1138 13 years ago
parent 7727a96195
commit 504c018c2e

@ -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 {

Loading…
Cancel
Save