Mercurial > sdl-ios-xcode
diff src/video/SDL_blit_A.c @ 1617:b255b4058d37
Patch from Alex to fix reverted code
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 12 Apr 2006 14:19:11 +0000 |
parents | 4b835e36633d |
children | 14717b52abc0 |
line wrap: on
line diff
--- a/src/video/SDL_blit_A.c Fri Mar 31 06:30:16 2006 +0000 +++ b/src/video/SDL_blit_A.c Wed Apr 12 14:19:11 2006 +0000 @@ -2756,8 +2756,9 @@ #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 @@ #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;