Mercurial > sdl-ios-xcode
diff src/video/SDL_blit.h @ 535:917cc5c56176
Fixed alpha blending bug (thanks Glenn!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 22 Oct 2002 21:41:21 +0000 |
parents | f6ffac90895c |
children | 417f8709e648 |
line wrap: on
line diff
--- 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)<<fmt->Rshift)| \ ((g>>fmt->Gloss)<<fmt->Gshift)| \ ((b>>fmt->Bloss)<<fmt->Bshift)| \ - ((a<<fmt->Aloss)<<fmt->Ashift); \ + ((a>>fmt->Aloss)<<fmt->Ashift); \ } #define ASSEMBLE_RGBA(buf, bpp, fmt, r, g, b, a) \ { \