diff options
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r-- | src/gui/window.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp index e498236a..37c61520 100644 --- a/src/gui/window.cpp +++ b/src/gui/window.cpp @@ -248,7 +248,7 @@ void Window::setMaxHeight(unsigned int height) void Window::setResizable(bool r) { - if ((bool)mGrip == r) return; + if ((bool) mGrip == r) return; if (r) { @@ -269,7 +269,7 @@ void Window::widgetResized(const gcn::Event &event) { if (mGrip) { - gcn::Rectangle const &area = getChildrenArea(); + const gcn::Rectangle area = getChildrenArea(); mGrip->setPosition(getWidth() - mGrip->getWidth() - area.x, getHeight() - mGrip->getHeight() - area.y); } @@ -497,7 +497,7 @@ void Window::setDefaultSize(int defaultX, int defaultY, void Window::resetToDefaultSize() { setPosition(mDefaultX, mDefaultY); - setContentSize(mDefaultWidth, mDefaultHeight); + setSize(mDefaultWidth, mDefaultHeight); } int Window::getResizeHandles(gcn::MouseEvent &event) |