diff options
author | Jared Adams <jaxad0127@gmail.com> | 2008-12-09 11:11:03 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-12-09 12:45:17 -0700 |
commit | 197b8ef1b728aca409a3a5bd2ac6d52142c6ce4c (patch) | |
tree | 9ea07dac6626adb9c0ef77ffebc0081e867391c3 /src/gui/minimap.cpp | |
parent | b06085f83ecf8e801aac26546498de73b02f90fa (diff) | |
download | mana-197b8ef1b728aca409a3a5bd2ac6d52142c6ce4c.tar.gz mana-197b8ef1b728aca409a3a5bd2ac6d52142c6ce4c.tar.bz2 mana-197b8ef1b728aca409a3a5bd2ac6d52142c6ce4c.tar.xz mana-197b8ef1b728aca409a3a5bd2ac6d52142c6ce4c.zip |
Make the window shortcuts configurable
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r-- | src/gui/minimap.cpp | 12 |
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 |