diff --git a/vs2015/sdl/src/SDL.c b/vs2015/sdl/src/SDL.c index 87f1b1af2a7..21866679251 100644 --- a/vs2015/sdl/src/SDL.c +++ b/vs2015/sdl/src/SDL.c @@ -221,6 +221,12 @@ void SDL_Quit(void) #endif SDL_QuitSubSystem(SDL_INIT_EVERYTHING); +#if defined(WIN32) + // windib + void StopParentWindow(void); + StopParentWindow(); +#endif + #ifdef CHECK_LEAKS #ifdef DEBUG_BUILD printf("[SDL_Quit] : CHECK_LEAKS\n"); fflush(stdout); diff --git a/vs2015/sdl/src/video/windib/SDL_dibevents.c b/vs2015/sdl/src/video/windib/SDL_dibevents.c index 7dbdd45adc7..1cd90cb8e99 100644 --- a/vs2015/sdl/src/video/windib/SDL_dibevents.c +++ b/vs2015/sdl/src/video/windib/SDL_dibevents.c @@ -974,7 +974,9 @@ void DIB_DestroyWindow(_THIS) DestroyWindow(SDL_Window); } - StopParentWindow(); +// NTS: DOSBox-X likes to call SQL_Quit/SQL_QuitSubSystem just to reinit the window. +// It's better if the parent window doesn't disappear and reappear. +// StopParentWindow(); SDL_UnregisterApp();