Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
I think this may fix the altivec blitters.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 8, 2012
1 parent b52d17f commit a91d7bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/SDL_blit_N.c
Expand Up @@ -708,7 +708,7 @@ ConvertAltivec32to32_noprefetch(SDL_BlitInfo * info)
bits = *(src++);
RGBA_FROM_8888(bits, srcfmt, r, g, b, a);
if(!srcfmt->Amask)
a = srcfmt->alpha;
a = info->a;
*(dst++) = MAKE8888(dstfmt, r, g, b, a);
width--;
}
Expand Down Expand Up @@ -737,7 +737,7 @@ ConvertAltivec32to32_noprefetch(SDL_BlitInfo * info)
bits = *(src++); /* max 7 pixels, don't bother with prefetch. */
RGBA_FROM_8888(bits, srcfmt, r, g, b, a);
if(!srcfmt->Amask)
a = srcfmt->alpha;
a = info->a;
*(dst++) = MAKE8888(dstfmt, r, g, b, a);
extrawidth--;
}
Expand Down Expand Up @@ -795,7 +795,7 @@ ConvertAltivec32to32_prefetch(SDL_BlitInfo * info)
bits = *(src++);
RGBA_FROM_8888(bits, srcfmt, r, g, b, a);
if(!srcfmt->Amask)
a = srcfmt->alpha;
a = info->a;
*(dst++) = MAKE8888(dstfmt, r, g, b, a);
width--;
}
Expand Down Expand Up @@ -828,7 +828,7 @@ ConvertAltivec32to32_prefetch(SDL_BlitInfo * info)
bits = *(src++); /* max 7 pixels, don't bother with prefetch. */
RGBA_FROM_8888(bits, srcfmt, r, g, b, a);
if(!srcfmt->Amask)
a = srcfmt->alpha;
a = info->a;
*(dst++) = MAKE8888(dstfmt, r, g, b, a);
extrawidth--;
}
Expand Down

0 comments on commit a91d7bf

Please sign in to comment.