summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-19 01:50:07 +0000
committersmatz <smatz@openttd.org>2008-05-19 01:50:07 +0000
commit1d9ad55edaea8b4314c85fd93c3687f6ae66f887 (patch)
treed1540487792c1253ba51ca50f9ddb61c652fc93a /src
parent4e11e0785ac2e78f523738f013f7ebe8cfa1d0c5 (diff)
downloadopenttd-1d9ad55edaea8b4314c85fd93c3687f6ae66f887.tar.xz
(svn r13176) -Fix (r13153): town window was glitchy while opening
Diffstat (limited to 'src')
-rw-r--r--src/town_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index 218276d33..ee2a80601 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -305,6 +305,8 @@ struct TownViewWindow : Window {
this->widget[TVW_CHANGENAME].bottom = this->widget[TVW_EXPAND].bottom;
this->widget[TVW_CHANGENAME].right = this->widget[TVW_STICKY].right;
}
+
+ this->FindWindowPlacementAndResize(desc);
}
virtual void OnPaint()