diff --git a/shared.c b/shared.c index 722cb53..3fd1966 100644 --- a/shared.c +++ b/shared.c @@ -1859,7 +1859,7 @@ int loadimagesets(void) { printf("error rotozooming sprite %d, deadimage %d\n",p,fr); exit(1); } - SDL_SetColorKey(tempimg, SDL_RLEACCEL, 0); + SDL_SetColorKey(tempimg, SDL_SRCCOLORKEY|SDL_RLEACCEL, SDL_MapRGB(screen->format, 0, 0, 0)); imageset[p].img[fr] = SDL_DisplayFormat(tempimg); SDL_FreeSurface(tempimg); }