Fix crash alt+tabbing in and out of fullscreen on Voodoo3+D3D+WinXP.

This commit is contained in:
Chris Danford
2003-05-30 00:30:40 +00:00
parent 96239cb2d0
commit 2a85a2b9df
3 changed files with 40 additions and 3 deletions
+6
View File
@@ -563,6 +563,12 @@ Uint8 mySDL_EventState(Uint8 type, int state)
void mySDL_WM_SetIcon( CString sIconFile )
{
if( sIconFile.empty() )
{
SDL_WM_SetIcon(NULL, NULL);
return;
}
SDL_Surface *srf = IMG_Load(sIconFile);
SDL_SetColorKey( srf, SDL_SRCCOLORKEY, SDL_MapRGB(srf->format, 0xFF, 0, 0xFF));