summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2008-12-09 11:11:03 +0000
committerIra Rice <irarice@gmail.com>2008-12-09 12:45:17 -0700
commit197b8ef1b728aca409a3a5bd2ac6d52142c6ce4c (patch)
tree9ea07dac6626adb9c0ef77ffebc0081e867391c3 /src/gui
parentb06085f83ecf8e801aac26546498de73b02f90fa (diff)
downloadmana-client-197b8ef1b728aca409a3a5bd2ac6d52142c6ce4c.tar.gz
mana-client-197b8ef1b728aca409a3a5bd2ac6d52142c6ce4c.tar.bz2
mana-client-197b8ef1b728aca409a3a5bd2ac6d52142c6ce4c.tar.xz
mana-client-197b8ef1b728aca409a3a5bd2ac6d52142c6ce4c.zip
Make the window shortcuts configurable
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/minimap.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index 6fbcd5da..fc00ad18 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -52,14 +52,14 @@ void Minimap::setMapImage(Image *img)
if (mMapImage)
{
- int offsetX = getPadding();
- int offsetY = getTitleBarHeight();
+ int offsetX = getPadding() + 4;
+ int offsetY = getTitleBarHeight() + 4;
mMapImage->setAlpha(0.7);
setDefaultSize(offsetX, offsetY,
- mMapImage->getWidth() < (100 + offsetX) ?
- mMapImage->getWidth() + offsetX : (100 + offsetX),
- mMapImage->getHeight() < (100 + offsetY) ?
- mMapImage->getHeight() + offsetY : (100 + offsetY));
+ mMapImage->getWidth() < 100 ?
+ mMapImage->getWidth() + offsetX : 100,
+ mMapImage->getHeight() < 100 ?
+ mMapImage->getHeight() + offsetY : 100);
loadWindowState();
}
else