Fix #15085: don't perform GUI scale changes before video driver is fully initialised (#15175)

This commit is contained in:
Peter Nelson
2026-01-27 21:07:18 +00:00
committed by Peter Nelson
parent ba874b69e6
commit ebec0b37a1
+2
View File
@@ -1817,6 +1817,8 @@ void UpdateGUIZoom()
*/
bool AdjustGUIZoom(bool automatic)
{
if (VideoDriver::GetInstance() == nullptr) return false;
ZoomLevel old_gui_zoom = _gui_zoom;
ZoomLevel old_font_zoom = _font_zoom;
int old_scale = _gui_scale;