I think this may fix the altivec blitters.
authorSam Lantinga <slouken@libsdl.org>
Sun, 08 Apr 2012 03:59:36 -0400
changeset 6304 9821f5c9b7bd
parent 6303 6bb657898f55
child 6305 601b0e251822
I think this may fix the altivec blitters.
src/video/SDL_blit_N.c
--- a/src/video/SDL_blit_N.c	Tue Feb 28 21:58:36 2012 -0500
+++ b/src/video/SDL_blit_N.c	Sun Apr 08 03:59:36 2012 -0400
@@ -708,7 +708,7 @@
             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 @@
             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 @@
             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 @@
             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--;
         }