diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 00:17:27 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 00:30:38 +0100 |
commit | 511d9ac780e094767e806c9a448ac973279dd4c8 (patch) | |
tree | a9051719bfdbce7f41338ef03a6f95d442a770cf /src/gui/window.cpp | |
parent | 2eee8b31f6959902db031e61df6c79249f56c23c (diff) | |
download | mana-511d9ac780e094767e806c9a448ac973279dd4c8.tar.gz mana-511d9ac780e094767e806c9a448ac973279dd4c8.tar.bz2 mana-511d9ac780e094767e806c9a448ac973279dd4c8.tar.xz mana-511d9ac780e094767e806c9a448ac973279dd4c8.zip |
Compile warning fixes
Mostly unsigned/signed mismatches and an unused variable.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r-- | src/gui/window.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp index 83354a07..0a5c3b13 100644 --- a/src/gui/window.cpp +++ b/src/gui/window.cpp @@ -255,23 +255,23 @@ void Window::setLocationRelativeTo(ImageRect::ImagePosition position, setPosition(offsetX, offsetY); } -void Window::setMinWidth(unsigned int width) +void Window::setMinWidth(int width) { mMinWinWidth = width > mSkin->getMinWidth() ? width : mSkin->getMinWidth(); } -void Window::setMinHeight(unsigned int height) +void Window::setMinHeight(int height) { mMinWinHeight = height > mSkin->getMinHeight() ? height : mSkin->getMinHeight(); } -void Window::setMaxWidth(unsigned int width) +void Window::setMaxWidth(int width) { mMaxWinWidth = width; } -void Window::setMaxHeight(unsigned int height) +void Window::setMaxHeight(int height) { mMaxWinHeight = height; } @@ -326,11 +326,6 @@ void Window::setSticky(bool sticky) mSticky = sticky; } -bool Window::isSticky() -{ - return mSticky; -} - void Window::setVisible(bool visible) { gcn::Window::setVisible(isSticky() || visible); |