From 55e07d0606c539224c85db4e4ea7dbd13ecf75a8 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 25 Jul 2009 15:58:48 +0000 Subject: (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(-) (limited to 'src') diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 90e234589..05b42f937 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 60519f3ee..2f79cdc77 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(); } /** -- cgit v1.2.3-70-g09d2