Fixed SDL_DisplayFormatAlpha() on RGB surfaces with alpha
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40432
This commit is contained in:
parent
8613885333
commit
a9c0bef803
4 changed files with 63 additions and 6 deletions
|
@ -1202,7 +1202,7 @@ static void BlitNtoN(SDL_BlitInfo *info)
|
|||
int srcbpp = srcfmt->BytesPerPixel;
|
||||
SDL_PixelFormat *dstfmt = info->dst;
|
||||
int dstbpp = dstfmt->BytesPerPixel;
|
||||
unsigned alpha = dstfmt->Amask ? SDL_ALPHA_OPAQUE : 0;
|
||||
unsigned alpha = dstfmt->Amask ? srcfmt->alpha : 0;
|
||||
|
||||
while ( height-- ) {
|
||||
DUFFS_LOOP(
|
||||
|
@ -1358,7 +1358,7 @@ static void BlitNtoNKey(SDL_BlitInfo *info)
|
|||
SDL_PixelFormat *dstfmt = info->dst;
|
||||
int srcbpp = srcfmt->BytesPerPixel;
|
||||
int dstbpp = dstfmt->BytesPerPixel;
|
||||
unsigned alpha = dstfmt->Amask ? SDL_ALPHA_OPAQUE : 0;
|
||||
unsigned alpha = dstfmt->Amask ? srcfmt->alpha : 0;
|
||||
|
||||
while ( height-- ) {
|
||||
DUFFS_LOOP(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue