ref: be122a160c93e3f7387000b62163021aa9f26cdd
parent: 9c1b1ff29054c4e8c0ea6ef243594b5a5273351e
author: Simon Howard <fraggle@gmail.com>
date: Tue Nov 5 23:21:19 EST 2013
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
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -929,6 +929,7 @@
// example.
SDL_WarpMouse(screen->w - 16, screen->h - 16);
+ SDL_GetRelativeMouseState(NULL, NULL);
}
currently_grabbed = grab;