Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Turn the system mouse cursor back on before VideoQuit().
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
icculus committed Jul 15, 2013
1 parent 2b0b5cf commit 9407a96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -2247,6 +2247,8 @@ SDL_VideoQuit(void)

SDL_EnableScreenSaver();

SDL_ShowCursor(1);

/* Clean up the system video */
while (_this->windows) {
SDL_DestroyWindow(_this->windows);
Expand Down

0 comments on commit 9407a96

Please sign in to comment.