summaryrefslogtreecommitdiff
path: root/src/setup/mainmenu.c
diff options
context:
space:
mode:
authorSimon Howard2014-04-13 23:34:21 +0000
committerSimon Howard2014-04-13 23:34:21 +0000
commitc2caed900d95ccfad4f73c9730f2cf25349707b8 (patch)
treeb37f004f90ec209e79b2d82e03e68e4d5ce0a76b /src/setup/mainmenu.c
parent50742cfc923a5be33398973072818f0c94950809 (diff)
downloadchocolate-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.
Diffstat (limited to 'src/setup/mainmenu.c')
-rw-r--r--src/setup/mainmenu.c2
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);
}