From 5595eb6280bc73877f197088d38fb6514c50b49e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 27 Sep 2020 16:20:17 +0200 Subject: [PATCH] Revert "- make SDL mouse scaling match that of Windows for consistency." This reverts commit 8578c117890e3f39a4f748f431936a8bd72705be. This caused more problems than it cured. --- src/common/platform/posix/sdl/i_input.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common/platform/posix/sdl/i_input.cpp b/src/common/platform/posix/sdl/i_input.cpp index 63bf4b638..4bd576ef4 100644 --- a/src/common/platform/posix/sdl/i_input.cpp +++ b/src/common/platform/posix/sdl/i_input.cpp @@ -225,10 +225,14 @@ static void MouseRead () } SDL_GetRelativeMouseState (&x, &y); - + if (!m_noprescale) + { + x *= 3; + y *= 2; + } if (x | y) { - PostMouseMove (m_noprescale ? x : x << 2, -y); + PostMouseMove (x, -y); } }