From a91d7bfb26ddfea8ec5716b185546264ab8cfc92 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 8 Apr 2012 03:59:36 -0400 Subject: [PATCH] I think this may fix the altivec blitters. --- src/video/SDL_blit_N.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/SDL_blit_N.c b/src/video/SDL_blit_N.c index d94570dbf..a87df23ae 100755 --- a/src/video/SDL_blit_N.c +++ b/src/video/SDL_blit_N.c @@ -708,7 +708,7 @@ ConvertAltivec32to32_noprefetch(SDL_BlitInfo * info) bits = *(src++); RGBA_FROM_8888(bits, srcfmt, r, g, b, a); if(!srcfmt->Amask) - a = srcfmt->alpha; + a = info->a; *(dst++) = MAKE8888(dstfmt, r, g, b, a); width--; } @@ -737,7 +737,7 @@ ConvertAltivec32to32_noprefetch(SDL_BlitInfo * info) bits = *(src++); /* max 7 pixels, don't bother with prefetch. */ RGBA_FROM_8888(bits, srcfmt, r, g, b, a); if(!srcfmt->Amask) - a = srcfmt->alpha; + a = info->a; *(dst++) = MAKE8888(dstfmt, r, g, b, a); extrawidth--; } @@ -795,7 +795,7 @@ ConvertAltivec32to32_prefetch(SDL_BlitInfo * info) bits = *(src++); RGBA_FROM_8888(bits, srcfmt, r, g, b, a); if(!srcfmt->Amask) - a = srcfmt->alpha; + a = info->a; *(dst++) = MAKE8888(dstfmt, r, g, b, a); width--; } @@ -828,7 +828,7 @@ ConvertAltivec32to32_prefetch(SDL_BlitInfo * info) bits = *(src++); /* max 7 pixels, don't bother with prefetch. */ RGBA_FROM_8888(bits, srcfmt, r, g, b, a); if(!srcfmt->Amask) - a = srcfmt->alpha; + a = info->a; *(dst++) = MAKE8888(dstfmt, r, g, b, a); extrawidth--; }