summaryrefslogtreecommitdiff
path: root/src/gfxinit.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-02-23 20:54:50 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-23 22:15:03 +0100
commit46e13313e4eada30a8aef857731e0a12664e02d1 (patch)
tree8e1c11319709566a6a7d096b4bd4564bacb4d170 /src/gfxinit.cpp
parentc93c9c099e5b29ad3fb9e33cef7783e92fa129a6 (diff)
downloadopenttd-46e13313e4eada30a8aef857731e0a12664e02d1.tar.xz
Fix #8731: Always use a 32bpp blitter if font anti-aliasing is enabled.
Diffstat (limited to 'src/gfxinit.cpp')
-rw-r--r--src/gfxinit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp
index fe37c3eb5..7884f89b5 100644
--- a/src/gfxinit.cpp
+++ b/src/gfxinit.cpp
@@ -268,6 +268,8 @@ static bool SwitchNewGRFBlitter()
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;
}
+ /* We need a 32bpp blitter for font anti-alias. */
+ if (HasAntialiasedFonts()) depth_wanted_by_grf = 32;
/* Search the best blitter. */
static const struct {