summaryrefslogtreecommitdiff
path: root/src/gfxinit.cpp
diff options
context:
space:
mode:
authorJonathan G Rennison <j.g.rennison@gmail.com>2018-05-23 09:55:04 +0100
committerPeterN <peter@fuzzle.org>2018-05-23 09:55:04 +0100
commit17257b9620a78dc115fadbcfa9a891e5392f09ab (patch)
tree78ba69e935bebbdc3b4ad9996cdc0059e576bf8f /src/gfxinit.cpp
parent306b999cf41307377bebe916048bdfb6fdf8e648 (diff)
downloadopenttd-17257b9620a78dc115fadbcfa9a891e5392f09ab.tar.xz
Add: 32bpp SSE2 blitter palette animator (#6795)
Create a new blitter mode: 32bpp-sse2-anim, which is 32bpp-anim + this. 32bpp-sse2-anim is now used by default where 32bpp-anim would have been. Also use this with the 32bpp-sse4-anim blitter. See issue #6469.
Diffstat (limited to 'src/gfxinit.cpp')
-rw-r--r--src/gfxinit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp
index d5959f5e1..f73027e91 100644
--- a/src/gfxinit.cpp
+++ b/src/gfxinit.cpp
@@ -284,6 +284,9 @@ static bool SwitchNewGRFBlitter()
#endif
{ "8bpp-optimized", 2, 8, 8, 8, 8 },
{ "32bpp-optimized", 0, 8, 32, 8, 32 },
+#ifdef WITH_SSE
+ { "32bpp-sse2-anim", 1, 8, 32, 8, 32 },
+#endif
{ "32bpp-anim", 1, 8, 32, 8, 32 },
};