mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 08:49:50 +00:00
(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.
This commit is contained in:
parent
a90e577485
commit
719f6618d7
@ -123,7 +123,7 @@ inline void Blitter_32bppAnim::Draw(const Blitter::BlitterParams *bp, ZoomLevel
|
|||||||
*anim = 0;
|
*anim = 0;
|
||||||
} else {
|
} else {
|
||||||
uint r = remap[m];
|
uint r = remap[m];
|
||||||
*anim = r;
|
*anim = 0;
|
||||||
if (r != 0) *dst = ComposeColourPANoCheck(this->LookupColourInPalette(r), src_px->a, *dst);
|
if (r != 0) *dst = ComposeColourPANoCheck(this->LookupColourInPalette(r), src_px->a, *dst);
|
||||||
}
|
}
|
||||||
anim++;
|
anim++;
|
||||||
@ -173,7 +173,7 @@ inline void Blitter_32bppAnim::Draw(const Blitter::BlitterParams *bp, ZoomLevel
|
|||||||
} else {
|
} else {
|
||||||
do {
|
do {
|
||||||
uint m = *src_n++;
|
uint m = *src_n++;
|
||||||
*anim++ = m;
|
*anim++ = 0;
|
||||||
if (m >= PALETTE_ANIM_START) {
|
if (m >= PALETTE_ANIM_START) {
|
||||||
*dst = ComposeColourPANoCheck(this->LookupColourInPalette(m), src_px->a, *dst);
|
*dst = ComposeColourPANoCheck(this->LookupColourInPalette(m), src_px->a, *dst);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user