summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2013-11-06 04:21:19 +0000
committerSimon Howard2013-11-06 04:21:19 +0000
commitbe122a160c93e3f7387000b62163021aa9f26cdd (patch)
treef691fe23ea889496ac358cd72288b3ac55eb7f9e
parent9c1b1ff29054c4e8c0ea6ef243594b5a5273351e (diff)
downloadchocolate-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.c1
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;