Commit 35b98313 authored by Sam Lantinga's avatar Sam Lantinga

Christian Walther fixed bug #529

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402687
parent c3d60df4
......@@ -755,7 +755,7 @@ Blit32to32SurfaceAlphaKeyAltivec(SDL_BlitInfo * info)
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 @@ Blit32to32SurfaceAlphaAltivec(SDL_BlitInfo * info)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment