pl_linux.c: add a comment about magenta tranparency

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@755 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Sander van Dijk 2012-10-01 02:26:44 +00:00
parent 6d8e3aa171
commit 8facba5030
1 changed files with 1 additions and 0 deletions

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);