summaryrefslogtreecommitdiff
path: root/src/blitter/32bpp_simple.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-10-06 18:45:51 +0000
committerrubidium <rubidium@openttd.org>2014-10-06 18:45:51 +0000
commit9c31ffd893efd0310e1276d179150ba2e9c2c4aa (patch)
tree9a71a2e1445452b4d96fbfc548a535d94c83c30f /src/blitter/32bpp_simple.cpp
parente5a92d7093ff354cac1101354e5e89e584b24bb4 (diff)
downloadopenttd-9c31ffd893efd0310e1276d179150ba2e9c2c4aa.tar.xz
(svn r26969) -Fix (r26869): black palette didn't work very well with unmasked 32bpp sprites
Diffstat (limited to 'src/blitter/32bpp_simple.cpp')
-rw-r--r--src/blitter/32bpp_simple.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/blitter/32bpp_simple.cpp b/src/blitter/32bpp_simple.cpp
index 0ad7418db..92375be16 100644
--- a/src/blitter/32bpp_simple.cpp
+++ b/src/blitter/32bpp_simple.cpp
@@ -58,6 +58,12 @@ void Blitter_32bppSimple::Draw(Blitter::BlitterParams *bp, BlitterMode mode, Zoo
}
break;
+ case BM_BLACK_REMAP:
+ if (src->a != 0) {
+ *dst = Colour(0, 0, 0);
+ }
+ break;
+
case BM_TRANSPARENT:
/* TODO -- We make an assumption here that the remap in fact is transparency, not some colour.
* This is never a problem with the code we produce, but newgrfs can make it fail... or at least: