mirror of https://github.com/OpenTTD/OpenTTD
pull/14244/head
parent
a277cb2b4c
commit
228f9ca941
|
@ -377,8 +377,11 @@ void Blitter_40bppAnim::DrawColourMappingRect(void *dst, int width, int height,
|
||||||
const uint8_t *remap = GetNonSprite(pal, SpriteType::Recolour) + 1;
|
const uint8_t *remap = GetNonSprite(pal, SpriteType::Recolour) + 1;
|
||||||
do {
|
do {
|
||||||
for (int i = 0; i != width; i++) {
|
for (int i = 0; i != width; i++) {
|
||||||
if (*anim == 0) *udst = MakeGrey(*udst);
|
if (*anim == 0) {
|
||||||
*anim = remap[*anim];
|
*udst = MakeGrey(*udst);
|
||||||
|
} else {
|
||||||
|
*anim = remap[*anim];
|
||||||
|
}
|
||||||
udst++;
|
udst++;
|
||||||
anim++;
|
anim++;
|
||||||
}
|
}
|
||||||
|
@ -389,7 +392,7 @@ void Blitter_40bppAnim::DrawColourMappingRect(void *dst, int width, int height,
|
||||||
const uint8_t *remap = GetNonSprite(pal, SpriteType::Recolour) + 1;
|
const uint8_t *remap = GetNonSprite(pal, SpriteType::Recolour) + 1;
|
||||||
do {
|
do {
|
||||||
for (int i = 0; i != width; i++) {
|
for (int i = 0; i != width; i++) {
|
||||||
*anim = remap[*anim];
|
if (*anim != 0) *anim = remap[*anim];
|
||||||
anim++;
|
anim++;
|
||||||
}
|
}
|
||||||
anim = anim - width + _screen.pitch;
|
anim = anim - width + _screen.pitch;
|
||||||
|
|
Loading…
Reference in New Issue