Skip to content
Permalink
Browse files
Handle source data alignment correctly in Blit32to32SurfaceAlphaAltiv…
…ec().

  Fixes Bugzilla #279.
  • Loading branch information
icculus committed Feb 12, 2007
1 parent a236082 commit ea054538c93f4043ee021bcbfdad7f39dd2cfd8b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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) {

0 comments on commit ea05453

Please sign in to comment.