summaryrefslogtreecommitdiff
path: root/src/gui/minimap.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-10 08:29:49 -0600
committerIra Rice <irarice@gmail.com>2009-03-10 08:29:49 -0600
commit67ea3716f8b01484527ead747c0cc6af3ac0cd76 (patch)
tree2d9656ab21c09fe0bd6562c8cb9e73ed57205643 /src/gui/minimap.cpp
parent443a10db52e909c4c2a33543795ec8837547e973 (diff)
downloadMana-67ea3716f8b01484527ead747c0cc6af3ac0cd76.tar.gz
Mana-67ea3716f8b01484527ead747c0cc6af3ac0cd76.tar.bz2
Mana-67ea3716f8b01484527ead747c0cc6af3ac0cd76.tar.xz
Mana-67ea3716f8b01484527ead747c0cc6af3ac0cd76.zip
Moved enforcement of minimum widths and heights to the Window class.
This was needed in the Minimap class, but not migrated out to the Window class until now. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r--src/gui/minimap.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index 2a97b949..ecda29ce 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -80,18 +80,6 @@ void Minimap::setMapImage(Image *img)
mMapImage->getWidth() + offsetX : titleWidth);
setMaxHeight(mMapImage->getHeight() + offsetY);
- // Make sure the window is within the minimum and maximum boundaries
- // TODO: Shouldn't this be happening automatically within the Window
- // class?
- if (getMinWidth() > getWidth())
- setWidth(getMinWidth());
- else if (getMaxWidth() < getWidth())
- setWidth(getMaxWidth());
- if (getMinHeight() > getHeight())
- setHeight(getMinHeight());
- else if (getMaxHeight() < getHeight())
- setHeight(getMaxHeight());
-
setContentSize(getWidth() - offsetX, getHeight() - offsetY);
setDefaultSize(getX(), getY(), getWidth(), getHeight());
resetToDefaultSize();