Fix #7266: Reorder reinitialization of caches when changing font zoom level. (#7273)

This commit is contained in:
PeterN
2019-02-24 16:27:44 +00:00
committed by GitHub
parent 91eee793e1
commit 195fd0dc60
3 changed files with 7 additions and 7 deletions

View File

@@ -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: