pl_linux.c: add a comment about magenta tranparency

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@755 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
svdijk 2012-10-01 02:26:44 +00:00
parent f6d61576b0
commit 56d810aef7

View file

@ -45,6 +45,7 @@ void PL_SetWindowIcon (void)
icon = SDL_LoadBMP_RW(rwop, 1);
if (icon == NULL)
return;
/* make pure magenta (#ff00ff) tranparent */
colorkey = SDL_MapRGB(icon->format, 255, 0, 255);
SDL_SetColorKey(icon, SDL_SRCCOLORKEY, colorkey);
SDL_WM_SetIcon(icon, NULL);