summaryrefslogtreecommitdiff
path: root/src/gui/debugwindow.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2007-10-28 13:01:08 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2007-10-28 13:01:08 +0000
commitc450af8c731fa8dfaa127a4cfe3ad588ede60658 (patch)
treef6b7c415c76cc9cb9988b09021d0ebfd778587ea /src/gui/debugwindow.cpp
parentb755a9b46325d96b8f74e0cb05bb350f2f4681d0 (diff)
downloadmana-c450af8c731fa8dfaa127a4cfe3ad588ede60658.tar.gz
mana-c450af8c731fa8dfaa127a4cfe3ad588ede60658.tar.bz2
mana-c450af8c731fa8dfaa127a4cfe3ad588ede60658.tar.xz
mana-c450af8c731fa8dfaa127a4cfe3ad588ede60658.zip
Fixed coordinates in the debug window and updated project file.
Diffstat (limited to 'src/gui/debugwindow.cpp')
-rw-r--r--src/gui/debugwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp
index 884cdf7e..3d0690b9 100644
--- a/src/gui/debugwindow.cpp
+++ b/src/gui/debugwindow.cpp
@@ -74,8 +74,8 @@ DebugWindow::logic()
// Get the current mouse position
int mouseX, mouseY;
SDL_GetMouseState(&mouseX, &mouseY);
- int mouseTileX = mouseX / 32 + viewport->getCameraX();
- int mouseTileY = mouseY / 32 + viewport->getCameraY();
+ int mouseTileX = mouseX + viewport->getCameraX();
+ int mouseTileY = mouseY + viewport->getCameraY();
mFPSLabel->setCaption("[" + toString(fps) + " FPS");
mFPSLabel->adjustSize();