diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-04 11:20:54 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-04 11:20:54 +0000 |
commit | eccafb8d815068d908b998bb6c0b581b076dc78f (patch) | |
tree | 6967d3ca5fa1dc77b177c2f735469503ca04cd14 /src/gui/debugwindow.cpp | |
parent | 061b9e817ffe73acca163510b276e6ca7dd8f6c2 (diff) | |
download | mana-eccafb8d815068d908b998bb6c0b581b076dc78f.tar.gz mana-eccafb8d815068d908b998bb6c0b581b076dc78f.tar.bz2 mana-eccafb8d815068d908b998bb6c0b581b076dc78f.tar.xz mana-eccafb8d815068d908b998bb6c0b581b076dc78f.zip |
Introduced a new class Viewport which combines the drawing code from Engine
with the (rather misplaced) input handling from the Gui class. Also, it's a
Container itself which should allow for extending it to show Guichan widgets on
map coordinates.
Diffstat (limited to 'src/gui/debugwindow.cpp')
-rw-r--r-- | src/gui/debugwindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp index 2f788d05..c44ac1d1 100644 --- a/src/gui/debugwindow.cpp +++ b/src/gui/debugwindow.cpp @@ -72,15 +72,15 @@ DebugWindow::logic() // Get the current mouse position int mouseX, mouseY; SDL_GetMouseState(&mouseX, &mouseY); - int mouseTileX = mouseX / 32 + camera_x; - int mouseTileY = mouseY / 32 + camera_y; + //int mouseTileX = mouseX / 32 + camera_x; + //int mouseTileY = mouseY / 32 + camera_y; mFPSLabel->setCaption("[" + toString(fps) + " FPS"); mFPSLabel->adjustSize(); - mTileMouseLabel->setCaption("[Mouse: " + - toString(mouseTileX) + ", " + toString(mouseTileY) + "]"); - mTileMouseLabel->adjustSize(); + //mTileMouseLabel->setCaption("[Mouse: " + + // toString(mouseTileX) + ", " + toString(mouseTileY) + "]"); + //mTileMouseLabel->adjustSize(); Map *currentMap = engine->getCurrentMap(); if (currentMap != NULL) |