Set the SDL window icon when changing video mode

git-svn-id: https://svn.eduke32.com/eduke32@4110 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2013-10-19 22:35:36 +00:00
parent 8248ef8446
commit bee968a535
1 changed files with 9 additions and 0 deletions

View File

@ -1529,6 +1529,15 @@ int32_t setvideomode(int32_t x, int32_t y, int32_t c, int32_t fs)
#endif
}
if (appicon)
{
#if SDL_MAJOR_VERSION==1
SDL_WM_SetIcon(appicon, 0);
#else
SDL_SetWindowIcon(sdl_window, appicon);
#endif
}
#ifdef USE_OPENGL
if (c > 8)
{