Remove 4-bit palette support. As far as I can tell, no hardware supports

it.  (New ATI hardware apparently doesn't even support 8-bit palettes?!)
This commit is contained in:
Glenn Maynard
2004-05-15 08:18:37 +00:00
parent 0dd2a75c5d
commit 6398054e26
5 changed files with 8 additions and 53 deletions
-3
View File
@@ -1062,9 +1062,6 @@ SDL_Surface *mySDL_Palettize( SDL_Surface *src_surf, int GrayBits, int AlphaBits
const int Amask = ((1 << AlphaBits) - 1) << Ashift; // alpha mask
const int Aloss = 8-AlphaBits;
if( TotalColors <= 16 )
dst_surf->unused1 |= FOUR_BIT_PALETTE;
for( int index = 0; index < TotalColors; ++index )
{
const int I = (index & Imask) >> Ishift;