Christian Walther fixed bug #529
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Dec 2007 22:15:39 +0000
changeset 2291 dc3dd3a0bf02
parent 2290 323a5af2924b
child 2292 4845eb8d4221
Christian Walther fixed bug #529
src/video/SDL_blit_A.c
--- a/src/video/SDL_blit_A.c	Sat Dec 29 22:13:47 2007 +0000
+++ b/src/video/SDL_blit_A.c	Sat Dec 29 22:15:39 2007 +0000
@@ -755,7 +755,7 @@
     vsdstPermute = calc_swizzle32(dstfmt, NULL);
 
     /* set a vector full of alpha and 255-alpha */
-    ((unsigned char *) &valpha)[0] = alpha;
+    ((unsigned char *) &valpha)[0] = sA;
     valpha = vec_splat(valpha, 0);
     vbits = (vector unsigned char) vec_splat_s8(-1);
 
@@ -1071,7 +1071,7 @@
     vsdstPermute = calc_swizzle32(dstfmt, NULL);
 
     /* set a vector full of alpha and 255-alpha */
-    ((unsigned char *) &valpha)[0] = alpha;
+    ((unsigned char *) &valpha)[0] = sA;
     valpha = vec_splat(valpha, 0);
     vbits = (vector unsigned char) vec_splat_s8(-1);