1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-28 06:34:33 +01:00

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 GitHub
parent 89ddc87c16
commit 3937d7ed6f

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;