comparison 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
comparison
equal deleted inserted replaced
1144:509295d5a023 1145:d31afac94eff
2385 2385
2386 /* Free the window */ 2386 /* Free the window */
2387 DIB_QuitGamma(this); 2387 DIB_QuitGamma(this);
2388 if ( SDL_Window ) { 2388 if ( SDL_Window ) {
2389 DX5_DestroyWindow(this); 2389 DX5_DestroyWindow(this);
2390 SDL_UnregisterApp();
2390 FlushMessageQueue(); 2391 FlushMessageQueue();
2391 } 2392 }
2392 2393
2393 /* Free our window icon */ 2394 /* Free our window icon */
2394 if ( screen_icn ) { 2395 if ( screen_icn ) {