diff src/video/windx5/SDL_dx5video.c @ 1145:d31afac94eff

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
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 27 Sep 2005 09:00:42 +0000
parents 96671ebc50a4
children f61f045343d3
line wrap: on
line diff
--- a/src/video/windx5/SDL_dx5video.c	Tue Sep 27 08:36:28 2005 +0000
+++ b/src/video/windx5/SDL_dx5video.c	Tue Sep 27 09:00:42 2005 +0000
@@ -2387,6 +2387,7 @@
 	DIB_QuitGamma(this);
 	if ( SDL_Window ) {
 		DX5_DestroyWindow(this);
+		SDL_UnregisterApp();
 		FlushMessageQueue();
 	}