Commit 275142c7 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Handle source data alignment correctly in Blit32to32SurfaceAlphaAltivec().

  Fixes Bugzilla #279.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402259
parent 8bc3ad08
...@@ -1287,7 +1287,7 @@ static void Blit32to32SurfaceAlphaAltivec(SDL_BlitInfo *info) ...@@ -1287,7 +1287,7 @@ static void Blit32to32SurfaceAlphaAltivec(SDL_BlitInfo *info)
ONE_PIXEL_BLEND((UNALIGNED_PTR(dstp)) && (width), width); ONE_PIXEL_BLEND((UNALIGNED_PTR(dstp)) && (width), width);
if (width > 0) { if (width > 0) {
int extrawidth = (width % 4); 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); vector unsigned char vs = (vector unsigned char)vec_ld(0, srcp);
width -= extrawidth; width -= extrawidth;
while (width) { while (width) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment