Commit 20e18895 authored by Sam Lantinga's avatar Sam Lantinga

Patch from Alex to fix reverted code

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401624
parent a3f6fa51
......@@ -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;
......@@ -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;
......
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