summaryrefslogtreecommitdiff
path: root/src/gfxinit.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-02-25 00:29:30 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-26 19:26:52 +0100
commit3cbbaa62dbb39f7eded93b442df496e9fc5fc373 (patch)
treee3d5c614d19e32a4ccad79ddc2183f1b41326b75 /src/gfxinit.cpp
parent9a3dbf3122f63f65ce95b2201c4dfe98c6003bc9 (diff)
downloadopenttd-3cbbaa62dbb39f7eded93b442df496e9fc5fc373.tar.xz
Change: Never auto-select an 8bpp blitter unless explicitly allowed by the 'support8bpp' setting.
Diffstat (limited to 'src/gfxinit.cpp')
-rw-r--r--src/gfxinit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp
index f569f6edf..404f85eb4 100644
--- a/src/gfxinit.cpp
+++ b/src/gfxinit.cpp
@@ -263,7 +263,7 @@ static bool SwitchNewGRFBlitter()
* between multiple 32bpp blitters, which perform differently with 8bpp sprites.
*/
uint depth_wanted_by_base = BaseGraphics::GetUsedSet()->blitter == BLT_32BPP ? 32 : 8;
- uint depth_wanted_by_grf = _support8bpp != S8BPP_NONE || VideoDriver::GetInstance()->HasEfficient8Bpp() ? 8 : 32;
+ uint depth_wanted_by_grf = _support8bpp != S8BPP_NONE ? 8 : 32;
for (GRFConfig *c = _grfconfig; c != nullptr; c = c->next) {
if (c->status == GCS_DISABLED || c->status == GCS_NOT_FOUND || HasBit(c->flags, GCF_INIT_ONLY)) continue;
if (c->palette & GRFP_BLT_32BPP) depth_wanted_by_grf = 32;