Turn the system mouse cursor back on before VideoQuit().
authorRyan C. Gordon <icculus@icculus.org>
Mon, 15 Jul 2013 14:38:19 -0400
changeset 7463 f2f794cf85c0
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
--- a/src/video/SDL_video.c	Mon Jul 15 01:12:15 2013 -0400
+++ b/src/video/SDL_video.c	Mon Jul 15 14:38:19 2013 -0400
@@ -2247,6 +2247,8 @@
 
     SDL_EnableScreenSaver();
 
+    SDL_ShowCursor(1);
+
     /* Clean up the system video */
     while (_this->windows) {
         SDL_DestroyWindow(_this->windows);