diff options
author | Ira Rice <irarice@gmail.com> | 2009-03-11 21:46:22 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-11 21:46:22 -0600 |
commit | 5b1e2aae6391edc99425ed7671d59eddd774212e (patch) | |
tree | 6476cd0fdad6ebf41c3e65ad1c44c80e688a39cd /src/gui/skin.cpp | |
parent | c410a861fddc7829408d687e61c67c6101555067 (diff) | |
download | mana-5b1e2aae6391edc99425ed7671d59eddd774212e.tar.gz mana-5b1e2aae6391edc99425ed7671d59eddd774212e.tar.bz2 mana-5b1e2aae6391edc99425ed7671d59eddd774212e.tar.xz mana-5b1e2aae6391edc99425ed7671d59eddd774212e.zip |
Enforce minimum widths and heights to be at least as big as the minumum
width and height for the skin used.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/skin.cpp')
-rw-r--r-- | src/gui/skin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/skin.cpp b/src/gui/skin.cpp index 8787770c..d44c54a8 100644 --- a/src/gui/skin.cpp +++ b/src/gui/skin.cpp @@ -51,13 +51,13 @@ Skin::~Skin() closeImage->decRef(); } -int Skin::getMinWidth() +unsigned int Skin::getMinWidth() { return (border.grid[0]->getWidth() + border.grid[1]->getWidth()) + border.grid[2]->getWidth(); } -int Skin::getMinHeight() +unsigned int Skin::getMinHeight() { return (border.grid[0]->getHeight() + border.grid[3]->getHeight()) + border.grid[6]->getHeight(); |