From 55e07d0606c539224c85db4e4ea7dbd13ecf75a8 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 25 Jul 2009 15:58:48 +0000 Subject: [PATCH] (svn r16957) -Fix: Trigger the same window repositioning after changing font/language as it is done after resizing the main OpenTTD window. --- src/settings_gui.cpp | 1 - src/window.cpp | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 90e2345898..05b42f937b 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -333,7 +333,6 @@ struct GameOptionsWindow : Window { CheckForMissingGlyphsInLoadedLanguagePack(); UpdateAllStationVirtCoords(); ReInitAllWindows(); - MarkWholeScreenDirty(); break; case GOW_RESOLUTION_DROPDOWN: // Change resolution diff --git a/src/window.cpp b/src/window.cpp index 60519f3ee5..2f79cdc77f 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -2556,6 +2556,10 @@ void ReInitAllWindows() FOR_ALL_WINDOWS_FROM_BACK(w) { w->ReInit(); } + + /* Make sure essential parts of all windows are visible */ + RelocateAllWindows(_cur_resolution.width, _cur_resolution.height); + MarkWholeScreenDirty(); } /**