summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client.cpp1
-rw-r--r--src/gui/windows/setup.cpp3
-rw-r--r--src/gui/windows/setup.h2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 4a22836c9..373c9b13f 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -669,6 +669,7 @@ void Client::gameInit()
userPalette = new UserPalette;
setupWindow = new Setup;
+ setupWindow->postInit();
helpWindow = new HelpWindow;
didYouKnowWindow = new DidYouKnowWindow;
didYouKnowWindow->postInit();
diff --git a/src/gui/windows/setup.cpp b/src/gui/windows/setup.cpp
index a7102204c..c893b97ee 100644
--- a/src/gui/windows/setup.cpp
+++ b/src/gui/windows/setup.cpp
@@ -67,7 +67,10 @@ Setup::Setup() :
setCloseButton(true);
setResizable(true);
setStickyButtonLock(true);
+}
+void Setup::postInit()
+{
int width = 620;
const int height = 450;
diff --git a/src/gui/windows/setup.h b/src/gui/windows/setup.h
index 5b299511b..e230dfe22 100644
--- a/src/gui/windows/setup.h
+++ b/src/gui/windows/setup.h
@@ -49,6 +49,8 @@ class Setup final : public Window, public gcn::ActionListener
~Setup();
+ void postInit();
+
void action(const gcn::ActionEvent &event) override;
void setInGame(const bool inGame);