Fix e2425b7: Sprites no longer refreshed if max zoom level changed.

Handle this via AdjustGUIZoom() instead.
This commit is contained in:
Peter Nelson
2023-12-11 12:30:20 +00:00
committed by Peter Nelson
parent 162ffc288d
commit dc27f1649a
2 changed files with 2 additions and 6 deletions

View File

@@ -1980,7 +1980,7 @@ bool AdjustGUIZoom(bool automatic)
ZoomLevel old_font_zoom = _font_zoom;
int old_scale = _gui_scale;
UpdateGUIZoom();
if (old_scale == _gui_scale) return false;
if (old_scale == _gui_scale && old_gui_zoom == _gui_zoom) return false;
/* Reload sprites if sprite zoom level has changed. */
if (old_gui_zoom != _gui_zoom) {