Fixed compiling the Altivec blit code
authorSam Lantinga <slouken@libsdl.org>
Sun, 12 Aug 2007 15:41:36 +0000
changeset 2231a353684c7cc1
parent 2230 9b7d29d2432b
child 2232 6630fefab312
Fixed compiling the Altivec blit code
src/video/SDL_blit_A.c
     1.1 --- a/src/video/SDL_blit_A.c	Sun Aug 12 07:02:28 2007 +0000
     1.2 +++ b/src/video/SDL_blit_A.c	Sun Aug 12 15:41:36 2007 +0000
     1.3 @@ -2838,8 +2838,7 @@
     1.4              else
     1.5  #if SDL_ALTIVEC_BLITTERS
     1.6                  if (sf->BytesPerPixel == 4 && df->BytesPerPixel == 4 &&
     1.7 -                    !(surface->map->dst->flags & SDL_HWSURFACE)
     1.8 -                    && SDL_HasAltiVec())
     1.9 +                    SDL_HasAltiVec())
    1.10                  return Blit32to32SurfaceAlphaKeyAltivec;
    1.11              else
    1.12  #endif
    1.13 @@ -2882,17 +2881,14 @@
    1.14  #endif
    1.15                      if ((sf->Rmask | sf->Gmask | sf->Bmask) == 0xffffff) {
    1.16  #if SDL_ALTIVEC_BLITTERS
    1.17 -                        if (!(surface->map->dst->flags & SDL_HWSURFACE)
    1.18 -                            && SDL_HasAltiVec())
    1.19 +                        if (SDL_HasAltiVec())
    1.20                              return BlitRGBtoRGBSurfaceAlphaAltivec;
    1.21  #endif
    1.22                          return BlitRGBtoRGBSurfaceAlpha;
    1.23                      }
    1.24                  }
    1.25  #if SDL_ALTIVEC_BLITTERS
    1.26 -                if ((sf->BytesPerPixel == 4) &&
    1.27 -                    !(surface->map->dst->flags & SDL_HWSURFACE)
    1.28 -                    && SDL_HasAltiVec())
    1.29 +                if ((sf->BytesPerPixel == 4) && SDL_HasAltiVec())
    1.30                      return Blit32to32SurfaceAlphaAltivec;
    1.31                  else
    1.32  #endif
    1.33 @@ -2912,7 +2908,6 @@
    1.34          case 2:
    1.35  #if SDL_ALTIVEC_BLITTERS
    1.36              if (sf->BytesPerPixel == 4
    1.37 -                && !(surface->map->dst->flags & SDL_HWSURFACE)
    1.38                  && df->Gmask == 0x7e0 && df->Bmask == 0x1f
    1.39                  && SDL_HasAltiVec())
    1.40                  return Blit32to565PixelAlphaAltivec;
    1.41 @@ -2946,17 +2941,14 @@
    1.42  #endif
    1.43                  if (sf->Amask == 0xff000000) {
    1.44  #if SDL_ALTIVEC_BLITTERS
    1.45 -                    if (!(surface->map->dst->flags & SDL_HWSURFACE)
    1.46 -                        && SDL_HasAltiVec())
    1.47 +                    if (SDL_HasAltiVec())
    1.48                          return BlitRGBtoRGBPixelAlphaAltivec;
    1.49  #endif
    1.50                      return BlitRGBtoRGBPixelAlpha;
    1.51                  }
    1.52              }
    1.53  #if SDL_ALTIVEC_BLITTERS
    1.54 -            if (sf->Amask && sf->BytesPerPixel == 4 &&
    1.55 -                !(surface->map->dst->flags & SDL_HWSURFACE)
    1.56 -                && SDL_HasAltiVec())
    1.57 +            if (sf->Amask && sf->BytesPerPixel == 4 && SDL_HasAltiVec())
    1.58                  return Blit32to32PixelAlphaAltivec;
    1.59              else
    1.60  #endif