Mercurial > sdl-ios-xcode
diff src/video/SDL_blit_N.c @ 431:41cadcba32e8
Fixed SDL_DisplayFormatAlpha() on RGB surfaces with alpha
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 01 Aug 2002 23:06:39 +0000 |
parents | c94b390687d2 |
children | 22dbf364c017 |
line wrap: on
line diff
--- a/src/video/SDL_blit_N.c Thu Aug 01 05:16:38 2002 +0000 +++ b/src/video/SDL_blit_N.c Thu Aug 01 23:06:39 2002 +0000 @@ -1202,7 +1202,7 @@ 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 @@ 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(