comparison src/video/SDL_blit_N.c @ 1487:dc6b59e925a2

Cleaning up warnings on MacOS X
author Sam Lantinga <slouken@libsdl.org>
date Thu, 09 Mar 2006 06:33:21 +0000
parents 9ebbbb4ae53b
children 98f9b16f565c
comparison
equal deleted inserted replaced
1486:9d77fc9d0ace 1487:dc6b59e925a2
117 srcfmt = &default_pixel_format; 117 srcfmt = &default_pixel_format;
118 } 118 }
119 if (!dstfmt) { 119 if (!dstfmt) {
120 dstfmt = &default_pixel_format; 120 dstfmt = &default_pixel_format;
121 } 121 }
122 vector unsigned char plus = VECUINT8_LITERAL( 122 const vector unsigned char plus = VECUINT8_LITERAL(
123 0x00, 0x00, 0x00, 0x00, 123 0x00, 0x00, 0x00, 0x00,
124 0x04, 0x04, 0x04, 0x04, 124 0x04, 0x04, 0x04, 0x04,
125 0x08, 0x08, 0x08, 0x08, 125 0x08, 0x08, 0x08, 0x08,
126 0x0C, 0x0C, 0x0C, 0x0C ); 126 0x0C, 0x0C, 0x0C, 0x0C );
127 vector unsigned char vswiz; 127 vector unsigned char vswiz;
557 vector unsigned int vckey; 557 vector unsigned int vckey;
558 vector unsigned int vrgbmask; 558 vector unsigned int vrgbmask;
559 vpermute = calc_swizzle32(srcfmt, dstfmt); 559 vpermute = calc_swizzle32(srcfmt, dstfmt);
560 if (info->d_width < 16) { 560 if (info->d_width < 16) {
561 if(copy_alpha) { 561 if(copy_alpha) {
562 return BlitNtoNKeyCopyAlpha(info); 562 BlitNtoNKeyCopyAlpha(info);
563 } else { 563 } else {
564 return BlitNtoNKey(info); 564 BlitNtoNKey(info);
565 } 565 }
566 return;
566 } 567 }
567 vzero = vec_splat_u8(0); 568 vzero = vec_splat_u8(0);
568 if (alpha) { 569 if (alpha) {
569 ((unsigned char *)&valpha)[0] = (unsigned char)alpha; 570 ((unsigned char *)&valpha)[0] = (unsigned char)alpha;
570 valpha = (vector unsigned int)vec_splat((vector unsigned char)valpha, 0); 571 valpha = (vector unsigned int)vec_splat((vector unsigned char)valpha, 0);