From ad0c5a085c3c6531db2a84a77d590311ed1d2d8f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 22 Oct 2012 02:39:05 +0300 Subject: Add auto resize feature to equipment window for correct placing slots. --- src/gui/widgets/window.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/widgets/window.cpp') diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 3f54ce3cc..9128402ad 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -50,6 +50,10 @@ Window::Window(const std::string &caption, const bool modal, Widget2(), gcn::WidgetListener(), mSkin(nullptr), + mDefaultX(0), + mDefaultY(0), + mDefaultWidth(0), + mDefaultHeight(0), mGrip(nullptr), mParent(parent), mLayout(nullptr), @@ -66,10 +70,6 @@ Window::Window(const std::string &caption, const bool modal, mMinWinHeight(40), mMaxWinWidth(mainGraphics->mWidth), mMaxWinHeight(mainGraphics->mHeight), - mDefaultX(0), - mDefaultY(0), - mDefaultWidth(0), - mDefaultHeight(0), mVertexes(new GraphicsVertexes()), mCaptionOffsetX(7), mCaptionOffsetY(5), -- cgit v1.2.3-60-g2f50