From e5c6cc2238ceea6aa651282b6fdc9c9be4fff51b Mon Sep 17 00:00:00 2001 From: pogokeen Date: Thu, 22 Feb 2018 03:38:54 +0000 Subject: [PATCH] sdlayer.cpp: remove unnecessary call to SDL_WarpMouseInWindow() on SDL2 that was causing issues with mouse movement when vsync was enabled on some hardware git-svn-id: https://svn.eduke32.com/eduke32@6683 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/sdlayer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/build/src/sdlayer.cpp b/source/build/src/sdlayer.cpp index 8ecf4c9d1..f181eefc4 100644 --- a/source/build/src/sdlayer.cpp +++ b/source/build/src/sdlayer.cpp @@ -1997,8 +1997,6 @@ int32_t handleevents_sdlcommon(SDL_Event *ev) mousey += ev->motion.yrel; # if SDL_MAJOR_VERSION==1 SDL_WarpMouse(xdim>>1, ydim>>1); -# else - SDL_WarpMouseInWindow(sdl_window, xdim>>1, ydim>>1); # endif } }