summaryrefslogtreecommitdiff
path: root/src/player_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-05-23 23:02:13 +0000
committerpeter1138 <peter1138@openttd.org>2008-05-23 23:02:13 +0000
commitcfc45e97ab94c6d96f32b3397201c003b61ccd75 (patch)
treef8f7bc73f5f105177d305593ba5a478036481084 /src/player_gui.cpp
parent7ba02ef2b0e67c4bfea054875e675b6cb999e922 (diff)
downloadopenttd-cfc45e97ab94c6d96f32b3397201c003b61ccd75.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.cpp7
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()