mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
#if guard unncessary mouse position check with SDL2
git-svn-id: https://svn.eduke32.com/eduke32@6797 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f978ba0d07
commit
7fc541f0d5
1 changed files with 2 additions and 0 deletions
|
@ -2013,7 +2013,9 @@ int32_t handleevents_sdlcommon(SDL_Event *ev)
|
|||
// <VER> is 1.3 for PK, 1.2 for tueidj
|
||||
if (appactive && mousegrab)
|
||||
{
|
||||
# if SDL_MAJOR_VERSION==1
|
||||
if (ev->motion.x != xdim >> 1 || ev->motion.y != ydim >> 1)
|
||||
# endif
|
||||
{
|
||||
mousex += ev->motion.xrel;
|
||||
mousey += ev->motion.yrel;
|
||||
|
|
Loading…
Reference in a new issue