Clean up the cursor clipping area when quitting SDL.
authorSam Lantinga <slouken@libsdl.org>
Thu, 05 Dec 2013 09:14:56 -0800
changeset 8049eac8f31e9bbd
parent 8048 a9c5ddad50b0
child 8050 be19dbc5ff4e
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
src/events/SDL_mouse.c
     1.1 --- a/src/events/SDL_mouse.c	Thu Dec 05 10:51:38 2013 -0300
     1.2 +++ b/src/events/SDL_mouse.c	Thu Dec 05 09:14:56 2013 -0800
     1.3 @@ -362,6 +362,7 @@
     1.4      SDL_Cursor *cursor, *next;
     1.5      SDL_Mouse *mouse = SDL_GetMouse();
     1.6  
     1.7 +    SDL_SetRelativeMouseMode(SDL_FALSE);
     1.8      SDL_ShowCursor(1);
     1.9  
    1.10      cursor = mouse->cursors;