comparison 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
comparison
equal deleted inserted replaced
2290:323a5af2924b 2291:dc3dd3a0bf02
753 vsrcPermute = calc_swizzle32(srcfmt, NULL); 753 vsrcPermute = calc_swizzle32(srcfmt, NULL);
754 vdstPermute = calc_swizzle32(NULL, dstfmt); 754 vdstPermute = calc_swizzle32(NULL, dstfmt);
755 vsdstPermute = calc_swizzle32(dstfmt, NULL); 755 vsdstPermute = calc_swizzle32(dstfmt, NULL);
756 756
757 /* set a vector full of alpha and 255-alpha */ 757 /* set a vector full of alpha and 255-alpha */
758 ((unsigned char *) &valpha)[0] = alpha; 758 ((unsigned char *) &valpha)[0] = sA;
759 valpha = vec_splat(valpha, 0); 759 valpha = vec_splat(valpha, 0);
760 vbits = (vector unsigned char) vec_splat_s8(-1); 760 vbits = (vector unsigned char) vec_splat_s8(-1);
761 761
762 ckey &= rgbmask; 762 ckey &= rgbmask;
763 ((unsigned int *) (char *) &vckey)[0] = ckey; 763 ((unsigned int *) (char *) &vckey)[0] = ckey;
1069 vsrcPermute = calc_swizzle32(srcfmt, NULL); 1069 vsrcPermute = calc_swizzle32(srcfmt, NULL);
1070 vdstPermute = calc_swizzle32(NULL, dstfmt); 1070 vdstPermute = calc_swizzle32(NULL, dstfmt);
1071 vsdstPermute = calc_swizzle32(dstfmt, NULL); 1071 vsdstPermute = calc_swizzle32(dstfmt, NULL);
1072 1072
1073 /* set a vector full of alpha and 255-alpha */ 1073 /* set a vector full of alpha and 255-alpha */
1074 ((unsigned char *) &valpha)[0] = alpha; 1074 ((unsigned char *) &valpha)[0] = sA;
1075 valpha = vec_splat(valpha, 0); 1075 valpha = vec_splat(valpha, 0);
1076 vbits = (vector unsigned char) vec_splat_s8(-1); 1076 vbits = (vector unsigned char) vec_splat_s8(-1);
1077 1077
1078 while (height--) { 1078 while (height--) {
1079 int width = info->dst_w; 1079 int width = info->dst_w;