summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-06 00:17:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-06 00:17:03 +0300
commita2d4dc030ef2240abfab1001bdb8ee954f3dd0d1 (patch)
tree5c8e8c179541f073b4ada83966a6a5b3527000e4 /src/gui
parentded460c18f0a7b1e5c9011b7a60e246f5cc5343d (diff)
downloadplus-a2d4dc030ef2240abfab1001bdb8ee954f3dd0d1.tar.gz
plus-a2d4dc030ef2240abfab1001bdb8ee954f3dd0d1.tar.bz2
plus-a2d4dc030ef2240abfab1001bdb8ee954f3dd0d1.tar.xz
plus-a2d4dc030ef2240abfab1001bdb8ee954f3dd0d1.zip
Fix big minimap scrolling with moving camera.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/minimap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index b76e71069..8089a2feb 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -233,7 +233,7 @@ void Minimap::draw(gcn::Graphics *graphics)
+ viewport->getCameraRelativeX()) * mWidthProportion) / 32;
mMapOriginY = ((a.height) / 2) - (static_cast<float>(p.y
- + viewport->getCameraRelativeX()) * mHeightProportion) / 32;
+ + viewport->getCameraRelativeY()) * mHeightProportion) / 32;
const int minOriginX = a.width - mMapImage->mBounds.w;
const int minOriginY = a.height - mMapImage->mBounds.h;