summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2019-02-25 12:20:55 +0000
committerCharles Pigott <charlespigott@googlemail.com>2019-02-25 19:46:03 +0000
commitc2e4a8c9bf6c2e7ceaddb13001adab5b1db916ab (patch)
tree14d7859caee13b73e1343f70cd3dee99b21c4ba7 /src
parent93c6398810b08f0d7ac0ceb58d406a1daf9c81e6 (diff)
downloadopenttd-c2e4a8c9bf6c2e7ceaddb13001adab5b1db916ab.tar.xz
Fix 195fd0dc60: Sprite cache must still be cleared when using bitmap fonts.
Diffstat (limited to 'src')
-rw-r--r--src/settings_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index a31c3afa4..c3a38b408 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -561,6 +561,7 @@ struct GameOptionsWindow : Window {
break;
case WID_GO_FONT_ZOOM_DROPDOWN:
+ GfxClearSpriteCache();
_font_zoom = (ZoomLevel)(ZOOM_LVL_OUT_4X - index);
ClearFontCache();
LoadStringWidthTable();