mirror of
https://github.com/joel16/SDL2.git
synced 2025-02-12 23:22:29 +00:00
Patch from Alex to fix reverted code
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401624
This commit is contained in:
parent
a3f6fa51eb
commit
20e18895f0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user