Skip to content

Commit

Permalink
Handle source data alignment correctly in Blit32to32SurfaceAlphaAltiv…
Browse files Browse the repository at this point in the history
…ec().

  Fixes Bugzilla #279.
  • Loading branch information
icculus committed Feb 12, 2007
1 parent a236082 commit ea05453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_blit_A.c
Expand Up @@ -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) {
Expand Down

0 comments on commit ea05453

Please sign in to comment.