comparison src/video/windib/SDL_dibvideo.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 51a8702d8ecd
comparison
equal deleted inserted replaced
1144:509295d5a023 1145:d31afac94eff
969 DestroyIcon(screen_icn); 969 DestroyIcon(screen_icn);
970 screen_icn = NULL; 970 screen_icn = NULL;
971 } 971 }
972 DIB_QuitGamma(this); 972 DIB_QuitGamma(this);
973 DIB_DestroyWindow(this); 973 DIB_DestroyWindow(this);
974 SDL_UnregisterApp();
974 FlushMessageQueue(); 975 FlushMessageQueue();
975 976
976 SDL_Window = NULL; 977 SDL_Window = NULL;
977 } 978 }
978 } 979 }