src/events/SDL_mouse.c
changeset 9161 6e34073ef024
parent 8983 21f5923cfd15
child 9257 6f41196c2d6b
equal deleted inserted replaced
9160:25a97df364fb 9161:6e34073ef024
   428 SDL_MouseQuit(void)
   428 SDL_MouseQuit(void)
   429 {
   429 {
   430     SDL_Cursor *cursor, *next;
   430     SDL_Cursor *cursor, *next;
   431     SDL_Mouse *mouse = SDL_GetMouse();
   431     SDL_Mouse *mouse = SDL_GetMouse();
   432 
   432 
   433     SDL_CaptureMouse(SDL_FALSE);
   433     if (mouse->CaptureMouse) {
       
   434         SDL_CaptureMouse(SDL_FALSE);
       
   435     }
   434     SDL_SetRelativeMouseMode(SDL_FALSE);
   436     SDL_SetRelativeMouseMode(SDL_FALSE);
   435     SDL_ShowCursor(1);
   437     SDL_ShowCursor(1);
   436 
   438 
   437     cursor = mouse->cursors;
   439     cursor = mouse->cursors;
   438     while (cursor) {
   440     while (cursor) {