#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:
terminx 2018-04-02 22:00:38 +00:00
parent f978ba0d07
commit 7fc541f0d5

View file

@ -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;