summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-18 12:16:43 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-18 12:16:47 +0200
commit726768cc297a69c66e0c801bb609dc505b89a3db (patch)
treeb512f90328695a36b4bc8e43157e1cdd61fe7326 /src/gui/viewport.cpp
parent1c19fb5173c59b8dd7de10af93347bc9d9279e7e (diff)
downloadmana-726768cc297a69c66e0c801bb609dc505b89a3db.tar.gz
mana-726768cc297a69c66e0c801bb609dc505b89a3db.tar.bz2
mana-726768cc297a69c66e0c801bb609dc505b89a3db.tar.xz
mana-726768cc297a69c66e0c801bb609dc505b89a3db.zip
Fixed mouse path debug when graphics are scaled
This SDL_GetMouseState call did not adjust the result to the graphics scale. Fortunately it could just be removed, since mMouseX and mMouseY are anyway updated each Viewport::logic.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index f02d2973..0d4af6f8 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -315,9 +315,6 @@ void Viewport::_drawDebugPath(Graphics *graphics)
{
if (mDebugFlags & Map::DEBUG_MOUSE_PATH)
{
- // Get the current mouse position
- SDL_GetMouseState(&mMouseX, &mMouseY);
-
// Prepare the walkmask corresponding to the protocol
unsigned char walkMask;
switch (Net::getNetworkType())