Handle source data alignment correctly in Blit32to32SurfaceAlphaAltivec(). SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Mon, 12 Feb 2007 10:52:10 +0000
branchSDL-1.2
changeset 3910af4d584e0edb
parent 3909 6832b00d3594
child 3911 ba3abfa20e18
Handle source data alignment correctly in Blit32to32SurfaceAlphaAltivec().

Fixes Bugzilla #279.
src/video/SDL_blit_A.c
     1.1 --- a/src/video/SDL_blit_A.c	Mon Feb 05 06:44:51 2007 +0000
     1.2 +++ b/src/video/SDL_blit_A.c	Mon Feb 12 10:52:10 2007 +0000
     1.3 @@ -1287,7 +1287,7 @@
     1.4          ONE_PIXEL_BLEND((UNALIGNED_PTR(dstp)) && (width), width);
     1.5          if (width > 0) {
     1.6              int extrawidth = (width % 4);
     1.7 -            vector unsigned char valigner = vec_lvsl(0, srcp);
     1.8 +            vector unsigned char valigner = VEC_ALIGNER(srcp);
     1.9              vector unsigned char vs = (vector unsigned char)vec_ld(0, srcp);
    1.10              width -= extrawidth;
    1.11              while (width) {