diff options
author | David Athay <ko2fan@gmail.com> | 2009-04-28 16:26:34 +0100 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2009-04-28 16:26:34 +0100 |
commit | c6ecbbecfeffe935a77bd79754cb59fbd1446a3e (patch) | |
tree | 452629d1f366c71104a91eec53777bc6474a5188 /src/gui/minimap.cpp | |
parent | a61c874163985efd6f293ac10f0140deeeb22a20 (diff) | |
download | mana-c6ecbbecfeffe935a77bd79754cb59fbd1446a3e.tar.gz mana-c6ecbbecfeffe935a77bd79754cb59fbd1446a3e.tar.bz2 mana-c6ecbbecfeffe935a77bd79754cb59fbd1446a3e.tar.xz mana-c6ecbbecfeffe935a77bd79754cb59fbd1446a3e.zip |
Made map non-resizable. Stopped emote spamming.
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r-- | src/gui/minimap.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 174151c6..8fc4c9ff 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -47,7 +47,10 @@ Minimap::Minimap(): setWindowName("MiniMap"); mShow = config.getValue(getWindowName() + "Show", true); setDefaultSize(5, 25, 100, 100); - setResizable(true); + // set this to false as the minimap window size is changed + //depending on the map size + setResizable(false); + setDefaultVisible(true); setSaveVisible(true); @@ -98,7 +101,7 @@ void Minimap::setMap(Map *map) setMinWidth(mapWidth > titleWidth ? mapWidth : titleWidth); setMinHeight(mapHeight); - + mWidthProportion = (float) mMapImage->getWidth() / map->getWidth(); mHeightProportion = (float) mMapImage->getHeight() / map->getHeight(); @@ -190,7 +193,7 @@ void Minimap::draw(gcn::Graphics *graphics) default: continue; } - + const int offsetHeight = (int) ((dotSize - 1) * mHeightProportion); const int offsetWidth = (int) ((dotSize - 1) * mWidthProportion); |