diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 00:17:27 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-26 17:52:00 -0600 |
commit | 2ec46b9a6e5ca1beb043da00cf2bb9d34722ec72 (patch) | |
tree | 02cfa2ce2e1976af94c07d7d984eb394ffa4f3c4 /src/gui/window.cpp | |
parent | 22974109dd0e9ae2b915cc2c258df1f01a65b729 (diff) | |
download | mana-2ec46b9a6e5ca1beb043da00cf2bb9d34722ec72.tar.gz mana-2ec46b9a6e5ca1beb043da00cf2bb9d34722ec72.tar.bz2 mana-2ec46b9a6e5ca1beb043da00cf2bb9d34722ec72.tar.xz mana-2ec46b9a6e5ca1beb043da00cf2bb9d34722ec72.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 f64f1caf..476dcd7e 100644 --- a/src/gui/window.cpp +++ b/src/gui/window.cpp @@ -221,23 +221,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; } @@ -292,11 +292,6 @@ void Window::setSticky(bool sticky) mSticky = sticky; } -bool Window::isSticky() -{ - return mSticky; -} - void Window::setVisible(bool visible) { gcn::Window::setVisible(isSticky() || visible); |