Patch from Alex to fix reverted code
authorSam Lantinga <slouken@libsdl.org>
Wed, 12 Apr 2006 14:19:11 +0000
changeset 1617 b255b4058d37
parent 1616 9f836cec0521
child 1618 3b08574f4c60
Patch from Alex to fix reverted code
src/video/SDL_blit_A.c
--- 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;