Windows MinGW: Cleanup SDL state in E_Exit() instead of leaving a hung window on the screen.

This commit is contained in:
Jonathan Campbell
2018-03-06 16:17:50 -08:00
parent b6eb4ac798
commit 65c1a1b368

View File

@@ -33,7 +33,7 @@
#include "support.h"
#include "video.h"
#include "menu.h"
#include "SDL.h"
void upcase(std::string &str) {
int (*tf)(int) = std::toupper;
@@ -192,6 +192,7 @@ void E_Exit(const char * format,...) {
endwin();
#endif
fprintf(stderr, "E_Exit: %s\n", buf);
SDL_Quit();
exit(0);
}