summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
diff options
context:
space:
mode:
authorPeterN <peter@fuzzle.org>2019-02-24 16:27:44 +0000
committerGitHub <noreply@github.com>2019-02-24 16:27:44 +0000
commit195fd0dc60cc895539ac6c04ff83b6f99f739830 (patch)
treef5cbcd397645ae1f1a8075bbc9bd5a85ded86bb0 /src/settings_gui.cpp
parent91eee793e1632c124c22ee46911e7de5fb3a2362 (diff)
downloadopenttd-195fd0dc60cc895539ac6c04ff83b6f99f739830.tar.xz
Fix #7266: Reorder reinitialization of caches when changing font zoom level. (#7273)
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r--src/settings_gui.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index a15f2ff58..a31c3afa4 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -556,16 +556,15 @@ struct GameOptionsWindow : Window {
GfxClearSpriteCache();
_gui_zoom = (ZoomLevel)(ZOOM_LVL_OUT_4X - index);
UpdateCursorSize();
- LoadStringWidthTable();
UpdateAllVirtCoords();
+ ReInitAllWindows();
break;
case WID_GO_FONT_ZOOM_DROPDOWN:
- GfxClearSpriteCache();
_font_zoom = (ZoomLevel)(ZOOM_LVL_OUT_4X - index);
ClearFontCache();
+ LoadStringWidthTable();
UpdateAllVirtCoords();
- ReInitAllWindows();
break;
case WID_GO_BASE_GRF_DROPDOWN: