summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-07-25 15:58:48 +0000
committerfrosch <frosch@openttd.org>2009-07-25 15:58:48 +0000
commit55e07d0606c539224c85db4e4ea7dbd13ecf75a8 (patch)
tree333cc87c2ff94b7a1f5962793dbe5b3458dbb08f
parent6de80c92781f91ae8273160560b6bc59e3372bcf (diff)
downloadopenttd-55e07d0606c539224c85db4e4ea7dbd13ecf75a8.tar.xz
(svn r16957) -Fix: Trigger the same window repositioning after changing font/language as it is done after resizing the main OpenTTD window.
-rw-r--r--src/settings_gui.cpp1
-rw-r--r--src/window.cpp4
2 files changed, 4 insertions, 1 deletions
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();
}
/**