begin work on arbitrary alpha values in paletted textures

This commit is contained in:
Glenn Maynard
2004-05-16 05:51:25 +00:00
parent 3e91007367
commit 04a74a4455
3 changed files with 29 additions and 11 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ apply_color_key:
img = dst;
}
if( img->format->BitsPerPixel == 8 && actualID.iGrayscaleBits == -1 )
if( img->format->BitsPerPixel == 8 && actualID.iGrayscaleBits == -1 && !(img->unused1 & ALPHA_PALETTE) )
{
/* Unless we set up the palette ourself, assume the "unused" bit is undefined,
* and set it to 255. We use it for alpha. */