mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-18 10:31:42 +00:00
SDL2: do not use silly math in rel mode
This commit is contained in:
parent
70ce9421e4
commit
246e0c21be
1 changed files with 6 additions and 1 deletions
|
@ -749,7 +749,12 @@ static void Impl_HandleMouseMotionEvent(SDL_MouseMotionEvent evt)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((evt.x == realwidth/2) && (evt.y == realheight/2))
|
if (!wrapmouseok)
|
||||||
|
{
|
||||||
|
event.data2 = evt.xrel;
|
||||||
|
event.data3 = evt.yrel;
|
||||||
|
}
|
||||||
|
else if ((evt.x == realwidth/2) && (evt.y == realheight/2))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue