diff src/video/SDL_blit_A.c @ 2291:dc3dd3a0bf02

Christian Walther fixed bug #529
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Dec 2007 22:15:39 +0000
parents c785543d1843
children e1da92da346c
line wrap: on
line diff
--- 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);