Ver Fonte

SDL_MouseQuit(): clear mouse->cur_cursor (Bug 4530)

Sylvain Becker há 7 anos atrás
pai
commit
28f54ee439
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/events/SDL_mouse.c

+ 1 - 0
src/events/SDL_mouse.c

@@ -607,6 +607,7 @@ SDL_MouseQuit(void)
         cursor = next;
     }
     mouse->cursors = NULL;
+    mouse->cur_cursor = NULL;
 
     if (mouse->def_cursor && mouse->FreeCursor) {
         mouse->FreeCursor(mouse->def_cursor);