diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2005-09-27 09:00:42 +0000 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2005-09-27 09:00:42 +0000 |
commit | 7791c7396253ec527c5067a21f49ba9fe770ee2a (patch) | |
tree | 9ff80603b077a1a557bc3a75189ef07c2dc63b81 /include/SDL_main.h | |
parent | c8157c1d15564d585fe8ecf3f3a2857ca0c49d33 (diff) |
Patch from Martin Lange (mala-sdl at hotmail.com) to unregister SDL's win32
windowclass when shutting down the video subsystem...this allows you to
safely unload/reload the SDL shared library on Windows between
initializations.
Discussion is here:
http://www.devolution.com/pipermail/sdl/2005-February/067424.html
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401148
Diffstat (limited to 'include/SDL_main.h')
-rw-r--r-- | include/SDL_main.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/SDL_main.h b/include/SDL_main.h index 084534a2..9d5924db 100644 --- a/include/SDL_main.h +++ b/include/SDL_main.h @@ -69,7 +69,8 @@ extern "C" { extern DECLSPEC void SDLCALL SDL_SetModuleHandle(void *hInst); /* This can also be called, but is no longer necessary */ extern DECLSPEC int SDLCALL SDL_RegisterApp(char *name, Uint32 style, void *hInst); - +/* This can also be called, but is no longer necessary (SDL_Quit calls it) */ +extern DECLSPEC void SDLCALL SDL_UnregisterApp(); #ifdef __cplusplus } #endif |