From 29a53a94358d0476044be2fe2602c4c210f3ea7e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 30 Jun 2003 03:14:13 +0000 Subject: [PATCH] use FMT_A1BGR5 --- stepmania/src/BannerCache.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/BannerCache.cpp b/stepmania/src/BannerCache.cpp index d62ea603f1..490e5c7bcc 100644 --- a/stepmania/src/BannerCache.cpp +++ b/stepmania/src/BannerCache.cpp @@ -369,9 +369,10 @@ void BannerCache::CacheBannerInternal( CString BannerPath ) ConvertSDLSurface(img, img->w, img->h, 32, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000); zoomSurface(img, width, height); - /* Dither to the final format. */ + /* Dither to the final format. We use A1RGB5, since that's usually supported + * natively by both OpenGL and D3D. */ SDL_Surface *dst = SDL_CreateRGBSurfaceSane(SDL_SWSURFACE, img->w, img->h, - 16, 0xF800, 0x07C0, 0x003E, 0x0001 ); + 16, 0x7C00, 0x03E0, 0x001F, 0x8000 ); SM_SDL_ErrorDiffusionDither(img, dst); SDL_FreeSurface( img );