diff options
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/debugwindow.cpp | 5 |
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") |