# HG changeset patch # User Sam Lantinga # Date 991925598 0 # Node ID f97decee03a9348b9a4d5154fdb79a0467e4c1a2 # Parent 45b1c4303f8715444c96a8a2091d8ff4a07b18b1 Mattias' patch diff -r 45b1c4303f87 -r f97decee03a9 src/video/SDL_pixels.c --- a/src/video/SDL_pixels.c Thu Jun 07 14:28:11 2001 +0000 +++ b/src/video/SDL_pixels.c Thu Jun 07 14:53:18 2001 +0000 @@ -464,7 +464,6 @@ Uint8 *map; int i; int bpp; - unsigned alpha; bpp = ((dst->BytesPerPixel == 3) ? 4 : dst->BytesPerPixel); map = (Uint8 *)malloc(src->ncolors*bpp); @@ -473,12 +472,11 @@ return(NULL); } - alpha = dst->Amask ? SDL_ALPHA_OPAQUE : 0; /* We memory copy to the pixel map so the endianness is preserved */ for ( i=0; incolors; ++i ) { ASSEMBLE_RGBA(&map[i*bpp], dst->BytesPerPixel, dst, src->colors[i].r, src->colors[i].g, - src->colors[i].b, alpha); + src->colors[i].b, SDL_ALPHA_OPAQUE); } return(map); }