From 726768cc297a69c66e0c801bb609dc505b89a3db Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Thu, 18 Apr 2024 12:16:43 +0200 Subject: 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. --- src/gui/viewport.cpp | 3 --- 1 file changed, 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()) -- cgit v1.2.3-70-g09d2