rem: SDL_SetColorKey ((SDL_Surface *)canvas, SDL_SRCCOLORKEY, index);
add: int flags = SDL_SRCCOLORKEY; if (rleaccel) flags |= SDL_RLEACCEL; SDL_SetColorKey ((SDL_Surface *)canvas, flags, index);  if (!TFB_DrawCanvas_IsPaletted (canvas)) {  SDL_SetAlpha ((SDL_Surface *)canvas, 0, 255); }
context: TFB_DrawCanvas_SetTransparentIndex (TFB_Canvas canvas, int index){	if (index >= 0)	{		SDL_SetColorKey ((SDL_Surface *)canvas, SDL_SRCCOLORKEY, index); 	}	else	{		SDL_SetColorKey ((SDL_Surface *)canvas, 0, 0); 	}		}