From 4b81b62b72febe0eadebd5bdeb549bca07e5df36 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 27 May 2024 12:44:34 +0100 Subject: [PATCH] Change: Don't reinitialise font caches when setting initial interface scale. (#12722) --- src/gfx_func.h | 1 + src/openttd.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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