summaryrefslogtreecommitdiff
path: root/src/blitter/32bpp_anim.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-09-09 21:56:52 +0000
committertruelight <truelight@openttd.org>2007-09-09 21:56:52 +0000
commit89bdfaacd93f543a72c37adbb277531f5e39482c (patch)
tree3628ae991fa6f1b731d7c53d8e543a7a18dada9e /src/blitter/32bpp_anim.cpp
parent38ff181ebf2e6baa1dfa41828b407bea488c2fa0 (diff)
downloadopenttd-89bdfaacd93f543a72c37adbb277531f5e39482c.tar.xz
(svn r11076) -Fix: MakeTransparent of 32bpp blitter used 0..100; using 0..255 makes it much faster (frosch)
-Fix: ComposeColourXXX could work a tiny bit faster when using 256, not 255 as value to divide with; downside is that it can give alpha errors (frosch)
Diffstat (limited to 'src/blitter/32bpp_anim.cpp')
-rw-r--r--src/blitter/32bpp_anim.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blitter/32bpp_anim.cpp b/src/blitter/32bpp_anim.cpp
index 9dbc19fba..7f8fe7651 100644
--- a/src/blitter/32bpp_anim.cpp
+++ b/src/blitter/32bpp_anim.cpp
@@ -59,7 +59,7 @@ void Blitter_32bppAnim::Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomL
/* Make the current color a bit more black, so it looks like this image is transparent */
if (src->a != 0) {
- *dst = MakeTransparent(*dst, 75);
+ *dst = MakeTransparent(*dst, 192);
*anim = bp->remap[*anim];
}
break;
@@ -90,7 +90,7 @@ void Blitter_32bppAnim::DrawColorMappingRect(void *dst, int width, int height, i
if (pal == PALETTE_TO_TRANSPARENT) {
do {
for (int i = 0; i != width; i++) {
- *udst = MakeTransparent(*udst, 60);
+ *udst = MakeTransparent(*udst, 154);
*anim = 0;
udst++;
anim++;