Mercurial > sdl-ios-xcode
changeset 2231:a353684c7cc1
Fixed compiling the Altivec blit code
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 12 Aug 2007 15:41:36 +0000 |
parents | 9b7d29d2432b |
children | 6630fefab312 |
files | src/video/SDL_blit_A.c |
diffstat | 1 files changed, 5 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/SDL_blit_A.c Sun Aug 12 07:02:28 2007 +0000 +++ b/src/video/SDL_blit_A.c Sun Aug 12 15:41:36 2007 +0000 @@ -2838,8 +2838,7 @@ else #if SDL_ALTIVEC_BLITTERS if (sf->BytesPerPixel == 4 && df->BytesPerPixel == 4 && - !(surface->map->dst->flags & SDL_HWSURFACE) - && SDL_HasAltiVec()) + SDL_HasAltiVec()) return Blit32to32SurfaceAlphaKeyAltivec; else #endif @@ -2882,17 +2881,14 @@ #endif if ((sf->Rmask | sf->Gmask | sf->Bmask) == 0xffffff) { #if SDL_ALTIVEC_BLITTERS - if (!(surface->map->dst->flags & SDL_HWSURFACE) - && SDL_HasAltiVec()) + if (SDL_HasAltiVec()) return BlitRGBtoRGBSurfaceAlphaAltivec; #endif return BlitRGBtoRGBSurfaceAlpha; } } #if SDL_ALTIVEC_BLITTERS - if ((sf->BytesPerPixel == 4) && - !(surface->map->dst->flags & SDL_HWSURFACE) - && SDL_HasAltiVec()) + if ((sf->BytesPerPixel == 4) && SDL_HasAltiVec()) return Blit32to32SurfaceAlphaAltivec; else #endif @@ -2912,7 +2908,6 @@ case 2: #if SDL_ALTIVEC_BLITTERS if (sf->BytesPerPixel == 4 - && !(surface->map->dst->flags & SDL_HWSURFACE) && df->Gmask == 0x7e0 && df->Bmask == 0x1f && SDL_HasAltiVec()) return Blit32to565PixelAlphaAltivec; @@ -2946,17 +2941,14 @@ #endif if (sf->Amask == 0xff000000) { #if SDL_ALTIVEC_BLITTERS - if (!(surface->map->dst->flags & SDL_HWSURFACE) - && SDL_HasAltiVec()) + if (SDL_HasAltiVec()) return BlitRGBtoRGBPixelAlphaAltivec; #endif return BlitRGBtoRGBPixelAlpha; } } #if SDL_ALTIVEC_BLITTERS - if (sf->Amask && sf->BytesPerPixel == 4 && - !(surface->map->dst->flags & SDL_HWSURFACE) - && SDL_HasAltiVec()) + if (sf->Amask && sf->BytesPerPixel == 4 && SDL_HasAltiVec()) return Blit32to32PixelAlphaAltivec; else #endif