foxygit / doom Log in
commit be122a160c93e3f7387000b62163021aa9f26cdd
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Wed Nov 6 04:21:19 2013 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Wed Nov 6 04:21:19 2013 +0000

    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
---
 src/i_video.c | 1 +
 1 file changed, 1 insertion(+)

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;