mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Windows MinGW: Cleanup SDL state in E_Exit() instead of leaving a hung window on the screen.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user