src/events/SDL_mouse.c
changeset 9161 6e34073ef024
parent 8983 21f5923cfd15
child 9257 6f41196c2d6b
     1.1 --- a/src/events/SDL_mouse.c	Wed Oct 15 09:10:50 2014 -0700
     1.2 +++ b/src/events/SDL_mouse.c	Wed Oct 15 09:11:15 2014 -0700
     1.3 @@ -430,7 +430,9 @@
     1.4      SDL_Cursor *cursor, *next;
     1.5      SDL_Mouse *mouse = SDL_GetMouse();
     1.6  
     1.7 -    SDL_CaptureMouse(SDL_FALSE);
     1.8 +    if (mouse->CaptureMouse) {
     1.9 +        SDL_CaptureMouse(SDL_FALSE);
    1.10 +    }
    1.11      SDL_SetRelativeMouseMode(SDL_FALSE);
    1.12      SDL_ShowCursor(1);
    1.13