diff options
author | Simon Howard | 2013-11-06 04:21:19 +0000 |
---|---|---|
committer | Simon Howard | 2013-11-06 04:21:19 +0000 |
commit | be122a160c93e3f7387000b62163021aa9f26cdd (patch) | |
tree | f691fe23ea889496ac358cd72288b3ac55eb7f9e | |
parent | 9c1b1ff29054c4e8c0ea6ef243594b5a5273351e (diff) | |
download | chocolate-doom-be122a160c93e3f7387000b62163021aa9f26cdd.tar.gz chocolate-doom-be122a160c93e3f7387000b62163021aa9f26cdd.tar.bz2 chocolate-doom-be122a160c93e3f7387000b62163021aa9f26cdd.zip |
Clear relative mouse state after moving mouse cursor to corner to
prevent "jumps" of the mouse when activating the menu.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2743
-rw-r--r-- | src/i_video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i_video.c b/src/i_video.c index ac75dd50..606fb5ac 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -929,6 +929,7 @@ static void UpdateGrab(void) // example. SDL_WarpMouse(screen->w - 16, screen->h - 16); + SDL_GetRelativeMouseState(NULL, NULL); } currently_grabbed = grab; |