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 | |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/gui/debugwindow.cpp | 4 | ||||
-rw-r--r-- | tmw.cbp | 10 |
3 files changed, 17 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2007-10-28 Eugenio Favalli <elvenprogrammer@gmail.com> + + * src/gui/debugwindow.cpp, tmw.cbp: Fixed coordinates in the debug + window and updated project file. + 2007-10-28 Philipp Sehmisch <tmw@crushnet.org> * 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(); @@ -593,6 +593,16 @@ <Option link="0"/> <Option target="default"/> </Unit> + <Unit filename="src\gui\sdlinput.cpp"> + <Option compilerVar="CPP"/> + <Option target="default"/> + </Unit> + <Unit filename="src\gui\sdlinput.h"> + <Option compilerVar=""/> + <Option compile="0"/> + <Option link="0"/> + <Option target="default"/> + </Unit> <Unit filename="src\gui\selectionlistener.h"> <Option compilerVar=""/> <Option compile="0"/> |