comparison src/video/SDL_blit_A.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 84de7511f79f
children a8bf1aa21020
comparison
equal deleted inserted replaced
1486:9d77fc9d0ace 1487:dc6b59e925a2
500 srcfmt = &default_pixel_format; 500 srcfmt = &default_pixel_format;
501 } 501 }
502 if (!dstfmt) { 502 if (!dstfmt) {
503 dstfmt = &default_pixel_format; 503 dstfmt = &default_pixel_format;
504 } 504 }
505 vector unsigned char plus = VECUINT8_LITERAL 505 const vector unsigned char plus = VECUINT8_LITERAL
506 ( 0x00, 0x00, 0x00, 0x00, 506 ( 0x00, 0x00, 0x00, 0x00,
507 0x04, 0x04, 0x04, 0x04, 507 0x04, 0x04, 0x04, 0x04,
508 0x08, 0x08, 0x08, 0x08, 508 0x08, 0x08, 0x08, 0x08,
509 0x0C, 0x0C, 0x0C, 0x0C ); 509 0x0C, 0x0C, 0x0C, 0x0C );
510 vector unsigned char vswiz; 510 vector unsigned char vswiz;
861 ++dstp; \ 861 ++dstp; \
862 widthvar--; \ 862 widthvar--; \
863 } 863 }
864 ONE_PIXEL_BLEND((UNALIGNED_PTR(dstp)) && (width), width); 864 ONE_PIXEL_BLEND((UNALIGNED_PTR(dstp)) && (width), width);
865 if (width > 0) { 865 if (width > 0) {
866 // vsrcPermute 866 /* vsrcPermute */
867 // vdstPermute 867 /* vdstPermute */
868 int extrawidth = (width % 4); 868 int extrawidth = (width % 4);
869 vector unsigned char valigner = VEC_ALIGNER(srcp); 869 vector unsigned char valigner = VEC_ALIGNER(srcp);
870 vector unsigned char vs = (vector unsigned char)vec_ld(0, srcp); 870 vector unsigned char vs = (vector unsigned char)vec_ld(0, srcp);
871 width -= extrawidth; 871 width -= extrawidth;
872 while (width) { 872 while (width) {