From c450af8c731fa8dfaa127a4cfe3ad588ede60658 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sun, 28 Oct 2007 13:01:08 +0000 Subject: Fixed coordinates in the debug window and updated project file. --- ChangeLog | 5 +++++ src/gui/debugwindow.cpp | 4 ++-- tmw.cbp | 10 ++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d51050c9..4c5b865a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-28 Eugenio Favalli + + * src/gui/debugwindow.cpp, tmw.cbp: Fixed coordinates in the debug + window and updated project file. + 2007-10-28 Philipp Sehmisch * src/gui/textfield.cpp: Fixed a windows compilation problem 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(); diff --git a/tmw.cbp b/tmw.cbp index 9f6892b5..71e382ae 100644 --- a/tmw.cbp +++ b/tmw.cbp @@ -593,6 +593,16 @@