src/events/SDL_mouse.c
changeset 7493 7bfda8f0bfdf
parent 7191 75360622e65f
child 7677 871d43c6968a
     1.1 --- a/src/events/SDL_mouse.c	Sun Jul 21 11:52:16 2013 -0700
     1.2 +++ b/src/events/SDL_mouse.c	Sun Jul 21 12:21:22 2013 -0700
     1.3 @@ -361,6 +361,23 @@
     1.4  void
     1.5  SDL_MouseQuit(void)
     1.6  {
     1.7 +    SDL_Cursor *cursor, *next;
     1.8 +    SDL_Mouse *mouse = SDL_GetMouse();
     1.9 +
    1.10 +    SDL_ShowCursor(1);
    1.11 +
    1.12 +    cursor = mouse->cursors;
    1.13 +    while (cursor) {
    1.14 +        next = cursor->next;
    1.15 +        SDL_FreeCursor(cursor);
    1.16 +        cursor = next;
    1.17 +    }
    1.18 +
    1.19 +    if (mouse->def_cursor && mouse->FreeCursor) {
    1.20 +        mouse->FreeCursor(mouse->def_cursor);
    1.21 +    }
    1.22 +
    1.23 +    SDL_zerop(mouse);
    1.24  }
    1.25  
    1.26  Uint32