changeset 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 9f836cec0521
children 3b08574f4c60
files src/video/SDL_blit_A.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
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;