# HG changeset patch # User Ryan C. Gordon # Date 1171277530 0 # Node ID af4d584e0edb6294c909d1baadeaa5927154dc7a # Parent 6832b00d35942686650f78ba0e2e688644cab2d4 Handle source data alignment correctly in Blit32to32SurfaceAlphaAltivec(). Fixes Bugzilla #279. diff -r 6832b00d3594 -r af4d584e0edb src/video/SDL_blit_A.c --- a/src/video/SDL_blit_A.c Mon Feb 05 06:44:51 2007 +0000 +++ b/src/video/SDL_blit_A.c Mon Feb 12 10:52:10 2007 +0000 @@ -1287,7 +1287,7 @@ ONE_PIXEL_BLEND((UNALIGNED_PTR(dstp)) && (width), width); if (width > 0) { int extrawidth = (width % 4); - vector unsigned char valigner = vec_lvsl(0, srcp); + vector unsigned char valigner = VEC_ALIGNER(srcp); vector unsigned char vs = (vector unsigned char)vec_ld(0, srcp); width -= extrawidth; while (width) {