mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
f6d61576b0
commit
56d810aef7
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue