- make SDL mouse scaling match that of Windows for consistency.

This commit is contained in:
Mitchell Richters 2020-07-05 11:04:34 +10:00 committed by Christoph Oelckers
parent bbacc9e816
commit 25c5b76f91

View file

@ -225,14 +225,10 @@ static void MouseRead ()
} }
SDL_GetRelativeMouseState (&x, &y); SDL_GetRelativeMouseState (&x, &y);
if (!m_noprescale)
{
x *= 3;
y *= 2;
}
if (x | y) if (x | y)
{ {
PostMouseMove (x, -y); PostMouseMove (m_noprescale ? x : x << 2, -y);
} }
} }