diff options
author | Simon Howard | 2014-04-13 23:34:21 +0000 |
---|---|---|
committer | Simon Howard | 2014-04-13 23:34:21 +0000 |
commit | c2caed900d95ccfad4f73c9730f2cf25349707b8 (patch) | |
tree | b37f004f90ec209e79b2d82e03e68e4d5ce0a76b | |
parent | 50742cfc923a5be33398973072818f0c94950809 (diff) | |
download | chocolate-doom-c2caed900d95ccfad4f73c9730f2cf25349707b8.tar.gz chocolate-doom-c2caed900d95ccfad4f73c9730f2cf25349707b8.tar.bz2 chocolate-doom-c2caed900d95ccfad4f73c9730f2cf25349707b8.zip |
setup: Call TXT_Shutdown on exit.
Some systems (fbcon SDL driver) get messed up if not cleanly shut
down. Make sure that we call SDL_QuitSubsystem on shutdown.
-rw-r--r-- | src/setup/mainmenu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/setup/mainmenu.c b/src/setup/mainmenu.c index 81688b29..c777edfa 100644 --- a/src/setup/mainmenu.c +++ b/src/setup/mainmenu.c @@ -129,6 +129,8 @@ static void DoQuit(void *widget, void *dosave) M_SaveDefaults(); } + TXT_Shutdown(); + exit(0); } |