Commit 43825e275acd81a9a321b55dfa577a5e0d6b9b5c

Sam Lantinga 2013-12-05T09:14:56

Clean up the cursor clipping area when quitting SDL. This fixes the cursor being clipped after the streaming client quits when streaming Dungeons of Dredmor

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c
index 0886f54..0bb0b18 100644
--- a/src/events/SDL_mouse.c
+++ b/src/events/SDL_mouse.c
@@ -362,6 +362,7 @@ SDL_MouseQuit(void)
     SDL_Cursor *cursor, *next;
     SDL_Mouse *mouse = SDL_GetMouse();
 
+    SDL_SetRelativeMouseMode(SDL_FALSE);
     SDL_ShowCursor(1);
 
     cursor = mouse->cursors;