diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2007-10-28 13:01:08 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2007-10-28 13:01:08 +0000 |
commit | c450af8c731fa8dfaa127a4cfe3ad588ede60658 (patch) | |
tree | f6b7c415c76cc9cb9988b09021d0ebfd778587ea /src/gui/debugwindow.cpp | |
parent | b755a9b46325d96b8f74e0cb05bb350f2f4681d0 (diff) | |
download | mana-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.cpp | 4 |
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(); |