src/video/SDL_blit_A.c
changeset 1617 b255b4058d37
parent 1546 4b835e36633d
child 1659 14717b52abc0
--- 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;