diff options
author | peter1138 <peter1138@openttd.org> | 2008-05-23 23:02:13 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-05-23 23:02:13 +0000 |
commit | 6f233b1f8f18beb1e347c943685f6086d886993e (patch) | |
tree | f8f7bc73f5f105177d305593ba5a478036481084 /src/player_gui.cpp | |
parent | 95c230759505dbaeaec1e56922bb8eb57e92bd4a (diff) | |
download | openttd-6f233b1f8f18beb1e347c943685f6086d886993e.tar.xz |
(svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
of windows causing 'two stage' opening effect.
Diffstat (limited to 'src/player_gui.cpp')
-rw-r--r-- | src/player_gui.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/player_gui.cpp b/src/player_gui.cpp index 3c611b005..f08b5c332 100644 --- a/src/player_gui.cpp +++ b/src/player_gui.cpp @@ -165,6 +165,8 @@ struct PlayerFinancesWindow : Window { this->top = top; this->left = left; } + + this->FindWindowPlacementAndResize(desc); } virtual void OnPaint() @@ -758,7 +760,6 @@ public: SelectPlayerFaceWindow(const WindowDesc *desc, Window *parent, bool advanced, int top, int left) : Window(desc, parent->window_number) { this->parent = parent; - this->FindWindowPlacementAndResize(desc); this->caption_color = this->window_number; this->face = GetPlayer((PlayerID)this->window_number)->face; this->advanced = advanced; @@ -770,6 +771,8 @@ public: this->top = top; this->left = left; } + + this->FindWindowPlacementAndResize(desc); } virtual void OnPaint() @@ -1167,6 +1170,7 @@ struct PlayerCompanyWindow : Window PlayerCompanyWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number) { this->caption_color = this->window_number; + this->FindWindowPlacementAndResize(desc); } virtual void OnPaint() @@ -1357,6 +1361,7 @@ void ShowPlayerCompany(PlayerID player) struct BuyCompanyWindow : Window { BuyCompanyWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number) { + this->FindWindowPlacementAndResize(desc); } virtual void OnPaint() |