From 25c5b76f91c4ea16d18cba3823e33d78c3e7e583 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 5 Jul 2020 11:04:34 +1000 Subject: [PATCH] - make SDL mouse scaling match that of Windows for consistency. --- source/common/platform/posix/sdl/i_input.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/common/platform/posix/sdl/i_input.cpp b/source/common/platform/posix/sdl/i_input.cpp index 6b34e6d64..846796831 100644 --- a/source/common/platform/posix/sdl/i_input.cpp +++ b/source/common/platform/posix/sdl/i_input.cpp @@ -225,14 +225,10 @@ static void MouseRead () } SDL_GetRelativeMouseState (&x, &y); - if (!m_noprescale) - { - x *= 3; - y *= 2; - } + if (x | y) { - PostMouseMove (x, -y); + PostMouseMove (m_noprescale ? x : x << 2, -y); } }