src/video/SDL_blit_N.c
changeset 431 41cadcba32e8
parent 366 c94b390687d2
child 739 22dbf364c017
     1.1 --- a/src/video/SDL_blit_N.c	Thu Aug 01 05:16:38 2002 +0000
     1.2 +++ b/src/video/SDL_blit_N.c	Thu Aug 01 23:06:39 2002 +0000
     1.3 @@ -1202,7 +1202,7 @@
     1.4  	int srcbpp = srcfmt->BytesPerPixel;
     1.5  	SDL_PixelFormat *dstfmt = info->dst;
     1.6  	int dstbpp = dstfmt->BytesPerPixel;
     1.7 -	unsigned alpha = dstfmt->Amask ? SDL_ALPHA_OPAQUE : 0;
     1.8 +	unsigned alpha = dstfmt->Amask ? srcfmt->alpha : 0;
     1.9  
    1.10  	while ( height-- ) {
    1.11  		DUFFS_LOOP(
    1.12 @@ -1358,7 +1358,7 @@
    1.13  	SDL_PixelFormat *dstfmt = info->dst;
    1.14  	int srcbpp = srcfmt->BytesPerPixel;
    1.15  	int dstbpp = dstfmt->BytesPerPixel;
    1.16 -	unsigned alpha = dstfmt->Amask ? SDL_ALPHA_OPAQUE : 0;
    1.17 +	unsigned alpha = dstfmt->Amask ? srcfmt->alpha : 0;
    1.18  
    1.19  	while ( height-- ) {
    1.20  		DUFFS_LOOP(