summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-12-08 17:57:55 -0700
committerIra Rice <irarice@gmail.com>2008-12-08 17:57:55 -0700
commitb06085f83ecf8e801aac26546498de73b02f90fa (patch)
tree9282798e3995af3077607ca865fb0d80f35a09f9
parent208d5a6c0523079ea1b2a2e69fd3e76804ada037 (diff)
downloadmana-client-b06085f83ecf8e801aac26546498de73b02f90fa.tar.gz
mana-client-b06085f83ecf8e801aac26546498de73b02f90fa.tar.bz2
mana-client-b06085f83ecf8e801aac26546498de73b02f90fa.tar.xz
mana-client-b06085f83ecf8e801aac26546498de73b02f90fa.zip
Small maps used to scroll as well as big maps. Fixed.
Signed-off-by: Ira Rice <irarice@gmail.com>
-rw-r--r--src/gui/minimap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index 578e2ce6..6fbcd5da 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -57,9 +57,9 @@ void Minimap::setMapImage(Image *img)
mMapImage->setAlpha(0.7);
setDefaultSize(offsetX, offsetY,
mMapImage->getWidth() < (100 + offsetX) ?
- mMapImage->getWidth() : (100 + offsetX),
+ mMapImage->getWidth() + offsetX : (100 + offsetX),
mMapImage->getHeight() < (100 + offsetY) ?
- mMapImage->getHeight() : (100 + offsetY));
+ mMapImage->getHeight() + offsetY : (100 + offsetY));
loadWindowState();
}
else