summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-01 22:30:44 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-01 22:30:44 +0300
commitd13de51121a332cf8613a38d7ed5468f971c999f (patch)
tree253c2911e291303fd90eb5d61c23076630782a11 /src/gui/windows
parent6915c38ca9c35bfb9a5ea05fe957463d644a75de (diff)
downloadmanaverse-d13de51121a332cf8613a38d7ed5468f971c999f.tar.gz
manaverse-d13de51121a332cf8613a38d7ed5468f971c999f.tar.bz2
manaverse-d13de51121a332cf8613a38d7ed5468f971c999f.tar.xz
manaverse-d13de51121a332cf8613a38d7ed5468f971c999f.zip
replace tile size from 32 to mapTitleSize.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/debugwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/debugwindow.cpp b/src/gui/windows/debugwindow.cpp
index 0104af792..3c3a856b8 100644
--- a/src/gui/windows/debugwindow.cpp
+++ b/src/gui/windows/debugwindow.cpp
@@ -133,8 +133,9 @@ void DebugWindow::draw(gcn::Graphics *g)
if (target)
{
Graphics *const g2 = static_cast<Graphics*>(g);
- target->draw(g2, -target->getPixelX() + 16 + mDimension.width / 2,
- -target->getPixelY() + 32 + mDimension.height / 2);
+ target->draw(g2, -target->getPixelX() + mapTileSize / 2
+ + mDimension.width / 2, -target->getPixelY() + mapTileSize
+ + mDimension.height / 2);
}
}
BLOCK_END("DebugWindow::draw")