comparison 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
comparison
equal deleted inserted replaced
1616:9f836cec0521 1617:b255b4058d37
2754 && SDL_HasMMX()) 2754 && SDL_HasMMX())
2755 return BlitRGBtoRGBSurfaceAlphaMMX; 2755 return BlitRGBtoRGBSurfaceAlphaMMX;
2756 #endif 2756 #endif
2757 if((sf->Rmask | sf->Gmask | sf->Bmask) == 0xffffff) 2757 if((sf->Rmask | sf->Gmask | sf->Bmask) == 0xffffff)
2758 { 2758 {
2759 #if USE_ALTIVEC_BLITTERS 2759 #if SDL_ALTIVEC_BLITTERS
2760 if(SDL_HasAltiVec()) 2760 if(!(surface->map->dst->flags & SDL_HWSURFACE)
2761 && SDL_HasAltiVec())
2761 return BlitRGBtoRGBSurfaceAlphaAltivec; 2762 return BlitRGBtoRGBSurfaceAlphaAltivec;
2762 #endif 2763 #endif
2763 return BlitRGBtoRGBSurfaceAlpha; 2764 return BlitRGBtoRGBSurfaceAlpha;
2764 } 2765 }
2765 } 2766 }
2820 return BlitRGBtoRGBPixelAlphaMMX; 2821 return BlitRGBtoRGBPixelAlphaMMX;
2821 } 2822 }
2822 #endif 2823 #endif
2823 if(sf->Amask == 0xff000000) 2824 if(sf->Amask == 0xff000000)
2824 { 2825 {
2825 #if USE_ALTIVEC_BLITTERS 2826 #if SDL_ALTIVEC_BLITTERS
2826 if(SDL_HasAltiVec()) 2827 if(!(surface->map->dst->flags & SDL_HWSURFACE)
2828 && SDL_HasAltiVec())
2827 return BlitRGBtoRGBPixelAlphaAltivec; 2829 return BlitRGBtoRGBPixelAlphaAltivec;
2828 #endif 2830 #endif
2829 return BlitRGBtoRGBPixelAlpha; 2831 return BlitRGBtoRGBPixelAlpha;
2830 } 2832 }
2831 } 2833 }