Commit c78b556d authored by Sam Lantinga's avatar Sam Lantinga

Fixed alpha blending bug (thanks Glenn!)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40536
parent c3d2c297
...@@ -330,7 +330,7 @@ do { \ ...@@ -330,7 +330,7 @@ do { \
pixel = ((r>>fmt->Rloss)<<fmt->Rshift)| \ pixel = ((r>>fmt->Rloss)<<fmt->Rshift)| \
((g>>fmt->Gloss)<<fmt->Gshift)| \ ((g>>fmt->Gloss)<<fmt->Gshift)| \
((b>>fmt->Bloss)<<fmt->Bshift)| \ ((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) \ #define ASSEMBLE_RGBA(buf, bpp, fmt, r, g, b, a) \
{ \ { \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment