Mercurial > sdl-ios-xcode
comparison src/video/SDL_blit_A.c @ 2086:fffea8d6bf92
Merged r2954:2955 from branches/SDL-1.2: Altivec alpha blitter alignment fix.
Fixes Bugzilla #279.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 12 Feb 2007 10:57:45 +0000 |
parents | 9e6dc39f48b6 |
children | c4e0afbcf1f6 |
comparison
equal
deleted
inserted
replaced
2085:962aa10fa95b | 2086:fffea8d6bf92 |
---|---|
1339 widthvar--; \ | 1339 widthvar--; \ |
1340 } | 1340 } |
1341 ONE_PIXEL_BLEND((UNALIGNED_PTR(dstp)) && (width), width); | 1341 ONE_PIXEL_BLEND((UNALIGNED_PTR(dstp)) && (width), width); |
1342 if (width > 0) { | 1342 if (width > 0) { |
1343 int extrawidth = (width % 4); | 1343 int extrawidth = (width % 4); |
1344 vector unsigned char valigner = vec_lvsl(0, srcp); | 1344 vector unsigned char valigner = VEC_ALIGNER(srcp); |
1345 vector unsigned char vs = (vector unsigned char) vec_ld(0, srcp); | 1345 vector unsigned char vs = (vector unsigned char) vec_ld(0, srcp); |
1346 width -= extrawidth; | 1346 width -= extrawidth; |
1347 while (width) { | 1347 while (width) { |
1348 vector unsigned char voverflow; | 1348 vector unsigned char voverflow; |
1349 vector unsigned char vd; | 1349 vector unsigned char vd; |