diff --git a/src/gfx_func.h b/src/gfx_func.h index c6c1a46a4c..d40431ba7b 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -79,6 +79,7 @@ void ChangeGameSpeed(bool enable_fast_forward); void DrawMouseCursor(); void ScreenSizeChanged(); void GameSizeChanged(); +void UpdateGUIZoom(); bool AdjustGUIZoom(bool automatic); void UndrawMouseCursor(); diff --git a/src/openttd.cpp b/src/openttd.cpp index 495486afd9..e24a9d21fd 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -757,7 +757,7 @@ int openttd_main(std::span arguments) _screen.zoom = ZOOM_LVL_MIN; /* The video driver is now selected, now initialise GUI zoom */ - AdjustGUIZoom(false); + UpdateGUIZoom(); SocialIntegration::Initialize(); NetworkStartUp(); // initialize network-core