Turn the system mouse cursor back on before VideoQuit().
authorRyan C. Gordon <icculus@icculus.org>
Mon, 15 Jul 2013 14:38:19 -0400
changeset 7463f2f794cf85c0
parent 7462 66b536503733
child 7464 7cdeb64faa72
Turn the system mouse cursor back on before VideoQuit().

This is good policy, so it doesn't have a chance to leave it hidden on targets
that wouldn't necessarily reset it by default, but it also fixes a crash if
you try to use a message box after SDL_Quit() is called.

Fixes Bugzilla #1969.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Mon Jul 15 01:12:15 2013 -0400
     1.2 +++ b/src/video/SDL_video.c	Mon Jul 15 14:38:19 2013 -0400
     1.3 @@ -2247,6 +2247,8 @@
     1.4  
     1.5      SDL_EnableScreenSaver();
     1.6  
     1.7 +    SDL_ShowCursor(1);
     1.8 +
     1.9      /* Clean up the system video */
    1.10      while (_this->windows) {
    1.11          SDL_DestroyWindow(_this->windows);