Christian Walther fixed bug #529

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402687
This commit is contained in:
Sam Lantinga 2007-12-29 22:15:39 +00:00
parent c3d60df45d
commit 35b98313ed

View file

@ -755,7 +755,7 @@ Blit32to32SurfaceAlphaKeyAltivec(SDL_BlitInfo * info)
vsdstPermute = calc_swizzle32(dstfmt, NULL); vsdstPermute = calc_swizzle32(dstfmt, NULL);
/* set a vector full of alpha and 255-alpha */ /* set a vector full of alpha and 255-alpha */
((unsigned char *) &valpha)[0] = alpha; ((unsigned char *) &valpha)[0] = sA;
valpha = vec_splat(valpha, 0); valpha = vec_splat(valpha, 0);
vbits = (vector unsigned char) vec_splat_s8(-1); vbits = (vector unsigned char) vec_splat_s8(-1);
@ -1071,7 +1071,7 @@ Blit32to32SurfaceAlphaAltivec(SDL_BlitInfo * info)
vsdstPermute = calc_swizzle32(dstfmt, NULL); vsdstPermute = calc_swizzle32(dstfmt, NULL);
/* set a vector full of alpha and 255-alpha */ /* set a vector full of alpha and 255-alpha */
((unsigned char *) &valpha)[0] = alpha; ((unsigned char *) &valpha)[0] = sA;
valpha = vec_splat(valpha, 0); valpha = vec_splat(valpha, 0);
vbits = (vector unsigned char) vec_splat_s8(-1); vbits = (vector unsigned char) vec_splat_s8(-1);