aboutsummaryrefslogtreecommitdiff
path: root/sdl.cpp
diff options
context:
space:
mode:
authorJames Brown2002-06-16 04:09:22 +0000
committerJames Brown2002-06-16 04:09:22 +0000
commitf3ab5d82288aa14cef1b4f9824e6d9605dcbe686 (patch)
tree4cb6eb8767684155d2a9d7992e6acb931d034b2c /sdl.cpp
parent6fb7585cf5ccda44efe3b6c8b445de3813785862 (diff)
downloadscummvm-rg350-f3ab5d82288aa14cef1b4f9824e6d9605dcbe686.tar.gz
scummvm-rg350-f3ab5d82288aa14cef1b4f9824e6d9605dcbe686.tar.bz2
scummvm-rg350-f3ab5d82288aa14cef1b4f9824e6d9605dcbe686.zip
Fix Simon case sensitivity, work around Win32 SDL bug (hang on audio exit)
svn-id: r4421
Diffstat (limited to 'sdl.cpp')
-rw-r--r--sdl.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/sdl.cpp b/sdl.cpp
index 88c120d8fa..6b1b6078a2 100644
--- a/sdl.cpp
+++ b/sdl.cpp
@@ -208,7 +208,13 @@ void Normal3x(uint8 *srcPtr, uint32 srcPitch, uint8 *null,
void atexit_proc() {
SDL_ShowCursor(SDL_ENABLE);
- SDL_Quit();
+
+ SDL_QuitSubSystem(SDL_INIT_VIDEO);
+ SDL_QuitSubSystem(SDL_INIT_TIMER);
+ SDL_QuitSubSystem(SDL_INIT_CDROM);
+#ifndef WIN32 // FIXME: SDL bug - closing audio freezes w/ waveout
+ SDL_QuitSubSystem(SDL_INIT_AUDIO);
+#endif
}
OSystem *OSystem_SDL::create(int gfx_mode, bool full_screen) {