Переглянути джерело

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

Sylvain Becker 7 роки тому
батько
коміт
28f54ee439
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      src/events/SDL_mouse.c

+ 1 - 0
src/events/SDL_mouse.c

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