# HG changeset patch # User Sam Lantinga # Date 1035322881 0 # Node ID 917cc5c5617637a469ca16a91123924d86e15e99 # Parent 1ea658a3dd52065c6b4f106845b1ed81b30acf9c Fixed alpha blending bug (thanks Glenn!) diff -r 1ea658a3dd52 -r 917cc5c56176 src/video/SDL_blit.h --- a/src/video/SDL_blit.h Tue Oct 22 21:35:49 2002 +0000 +++ b/src/video/SDL_blit.h Tue Oct 22 21:41:21 2002 +0000 @@ -330,7 +330,7 @@ pixel = ((r>>fmt->Rloss)<Rshift)| \ ((g>>fmt->Gloss)<Gshift)| \ ((b>>fmt->Bloss)<Bshift)| \ - ((a<Aloss)<Ashift); \ + ((a>>fmt->Aloss)<Ashift); \ } #define ASSEMBLE_RGBA(buf, bpp, fmt, r, g, b, a) \ { \