Skip to content

Commit

Permalink
Patch from Alex to fix reverted code
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 12, 2006
1 parent 271caf6 commit c961c45
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/video/SDL_blit_A.c
Expand Up @@ -2756,8 +2756,9 @@ SDL_loblit SDL_CalculateAlphaBlit(SDL_Surface *surface, int blit_index)
#endif
if((sf->Rmask | sf->Gmask | sf->Bmask) == 0xffffff)
{
#if USE_ALTIVEC_BLITTERS
if(SDL_HasAltiVec())
#if SDL_ALTIVEC_BLITTERS
if(!(surface->map->dst->flags & SDL_HWSURFACE)
&& SDL_HasAltiVec())
return BlitRGBtoRGBSurfaceAlphaAltivec;
#endif
return BlitRGBtoRGBSurfaceAlpha;
Expand Down Expand Up @@ -2822,8 +2823,9 @@ SDL_loblit SDL_CalculateAlphaBlit(SDL_Surface *surface, int blit_index)
#endif
if(sf->Amask == 0xff000000)
{
#if USE_ALTIVEC_BLITTERS
if(SDL_HasAltiVec())
#if SDL_ALTIVEC_BLITTERS
if(!(surface->map->dst->flags & SDL_HWSURFACE)
&& SDL_HasAltiVec())
return BlitRGBtoRGBPixelAlphaAltivec;
#endif
return BlitRGBtoRGBPixelAlpha;
Expand Down

0 comments on commit c961c45

Please sign in to comment.