use FMT_A1BGR5

This commit is contained in:
Glenn Maynard
2003-06-30 03:14:13 +00:00
parent 108a3cceee
commit 29a53a9435
+3 -2
View File
@@ -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 );