changeset 535:917cc5c56176

Fixed alpha blending bug (thanks Glenn!)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 22 Oct 2002 21:41:21 +0000
parents 1ea658a3dd52
children bf7f477fb2b2
files src/video/SDL_blit.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)			\
 {									\