Fixed alpha blending bug (thanks Glenn!)
authorSam Lantinga <slouken@libsdl.org>
Tue, 22 Oct 2002 21:41:21 +0000
changeset 535917cc5c56176
parent 534 1ea658a3dd52
child 536 bf7f477fb2b2
Fixed alpha blending bug (thanks Glenn!)
src/video/SDL_blit.h
     1.1 --- a/src/video/SDL_blit.h	Tue Oct 22 21:35:49 2002 +0000
     1.2 +++ b/src/video/SDL_blit.h	Tue Oct 22 21:41:21 2002 +0000
     1.3 @@ -330,7 +330,7 @@
     1.4  	pixel = ((r>>fmt->Rloss)<<fmt->Rshift)|				\
     1.5  		((g>>fmt->Gloss)<<fmt->Gshift)|				\
     1.6  		((b>>fmt->Bloss)<<fmt->Bshift)|				\
     1.7 -		((a<<fmt->Aloss)<<fmt->Ashift);				\
     1.8 +		((a>>fmt->Aloss)<<fmt->Ashift);				\
     1.9  }
    1.10  #define ASSEMBLE_RGBA(buf, bpp, fmt, r, g, b, a)			\
    1.11  {									\