Fix font height cache when changing GUI scaling.

This commit is contained in:
Jonathan G Rennison
2016-01-03 14:52:30 +00:00
parent 726b5cb4f6
commit 30d8cb2d4c
4 changed files with 13 additions and 0 deletions

View File

@@ -528,9 +528,11 @@ struct GameOptionsWindow : Window {
break;
case WID_GO_GUI_ZOOM_DROPDOWN:
extern void UpdateFontHeightCache();
GfxClearSpriteCache();
_gui_zoom = (ZoomLevel)(ZOOM_LVL_OUT_4X - index);
UpdateCursorSize();
UpdateFontHeightCache();
LoadStringWidthTable();
break;