From ea054538c93f4043ee021bcbfdad7f39dd2cfd8b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 12 Feb 2007 10:52:10 +0000 Subject: [PATCH] Handle source data alignment correctly in Blit32to32SurfaceAlphaAltivec(). Fixes Bugzilla #279. --- src/video/SDL_blit_A.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_blit_A.c b/src/video/SDL_blit_A.c index c33211eef..5b10ab397 100644 --- a/src/video/SDL_blit_A.c +++ b/src/video/SDL_blit_A.c @@ -1287,7 +1287,7 @@ static void Blit32to32SurfaceAlphaAltivec(SDL_BlitInfo *info) 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) {