From bee968a53536adcfaede4d39cd50d9a59c483517 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 19 Oct 2013 22:35:36 +0000 Subject: [PATCH] Set the SDL window icon when changing video mode git-svn-id: https://svn.eduke32.com/eduke32@4110 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/sdlayer.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index a2b250eb8..781811799 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -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) {