From fad1fb4225891d43627baac36664ca8e127e0d5f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 14 Jul 2003 22:42:12 +0000 Subject: [PATCH] Fix color key in faded rotated banners. --- stepmania/src/BannerCache.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/BannerCache.cpp b/stepmania/src/BannerCache.cpp index bb12a90bda..f8d8adf7e8 100644 --- a/stepmania/src/BannerCache.cpp +++ b/stepmania/src/BannerCache.cpp @@ -321,6 +321,9 @@ void BannerCache::CacheBannerInternal( CString BannerPath ) * This also makes the banner take less memory, though that could also be * done by RLEing the surface. */ + int color = mySDL_MapRGBExact(img->format, 0xFF, 0, 0xFF); + if( color != -1 ) + SDL_SetColorKey( img, SDL_SRCCOLORKEY, color ); ConvertSDLSurface(img, img->w, img->h, 32, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000); SDL_Surface *dst = SDL_CreateRGBSurface(