src/video/SDL_blit_N.c
changeset 2735 204be4fc2726
parent 2267 c785543d1843
child 2853 6258fa7cd300
     1.1 --- a/src/video/SDL_blit_N.c	Wed Aug 27 13:37:19 2008 +0000
     1.2 +++ b/src/video/SDL_blit_N.c	Wed Aug 27 15:10:03 2008 +0000
     1.3 @@ -141,8 +141,8 @@
     1.4      /* Use zero for alpha if either surface doesn't have alpha */
     1.5      if (dstfmt->Amask) {
     1.6          amask =
     1.7 -            ((srcfmt->Amask) ? RESHIFT(srcfmt->Ashift) : 0x10) << (dstfmt->
     1.8 -                                                                   Ashift);
     1.9 +            ((srcfmt->Amask) ? RESHIFT(srcfmt->
    1.10 +                                       Ashift) : 0x10) << (dstfmt->Ashift);
    1.11      } else {
    1.12          amask =
    1.13              0x10101010 & ((dstfmt->Rmask | dstfmt->Gmask | dstfmt->Bmask) ^
    1.14 @@ -1435,6 +1435,7 @@
    1.15      0x00001ce6, 0xffff8100, 0x00001cee, 0xffffa100,
    1.16      0x00001cf6, 0xffffc200, 0x00001cff, 0xffffe200
    1.17  };
    1.18 +
    1.19  static void
    1.20  Blit_RGB565_ARGB8888(SDL_BlitInfo * info)
    1.21  {
    1.22 @@ -1572,6 +1573,7 @@
    1.23      0xffe61c00, 0x000081ff, 0xffee1c00, 0x0000a1ff,
    1.24      0xfff61c00, 0x0000c2ff, 0xffff1c00, 0x0000e2ff
    1.25  };
    1.26 +
    1.27  static void
    1.28  Blit_RGB565_ABGR8888(SDL_BlitInfo * info)
    1.29  {
    1.30 @@ -1709,6 +1711,7 @@
    1.31      0x001ce6ff, 0xff810000, 0x001ceeff, 0xffa10000,
    1.32      0x001cf6ff, 0xffc20000, 0x001cffff, 0xffe20000,
    1.33  };
    1.34 +
    1.35  static void
    1.36  Blit_RGB565_RGBA8888(SDL_BlitInfo * info)
    1.37  {
    1.38 @@ -1846,6 +1849,7 @@
    1.39      0xe61c0000, 0x0081ffff, 0xee1c0000, 0x00a1ffff,
    1.40      0xf61c0000, 0x00c2ffff, 0xff1c0000, 0x00e2ffff
    1.41  };
    1.42 +
    1.43  static void
    1.44  Blit_RGB565_BGRA8888(SDL_BlitInfo * info)
    1.45  {
    1.46 @@ -1930,6 +1934,7 @@
    1.47      }
    1.48  #endif /* USE_DUFFS_LOOP */
    1.49  }
    1.50 +
    1.51  static void
    1.52  BlitNto1(SDL_BlitInfo * info)
    1.53  {
    1.54 @@ -2340,6 +2345,7 @@
    1.55      /* Default for 8-bit RGB source, an invalid combination */
    1.56      {0, 0, 0, 0, 0, 0, 0, 0, NULL},
    1.57  };
    1.58 +
    1.59  static const struct blit_table normal_blit_2[] = {
    1.60  #if SDL_ALTIVEC_BLITTERS
    1.61      /* has-altivec */
    1.62 @@ -2366,10 +2372,12 @@
    1.63      /* Default for 16-bit RGB source, used if no other blitter matches */
    1.64      {0, 0, 0, 0, 0, 0, 0, 0, BlitNtoN, 0}
    1.65  };
    1.66 +
    1.67  static const struct blit_table normal_blit_3[] = {
    1.68      /* Default for 24-bit RGB source, never optimized */
    1.69      {0, 0, 0, 0, 0, 0, 0, 0, BlitNtoN, 0}
    1.70  };
    1.71 +
    1.72  static const struct blit_table normal_blit_4[] = {
    1.73  #if SDL_ALTIVEC_BLITTERS
    1.74      /* has-altivec | dont-use-prefetch */
    1.75 @@ -2396,6 +2404,7 @@
    1.76      /* Default for 32-bit RGB source, used if no other blitter matches */
    1.77      {0, 0, 0, 0, 0, 0, 0, 0, BlitNtoN, 0}
    1.78  };
    1.79 +
    1.80  static const struct blit_table *normal_blit[] = {
    1.81      normal_blit_1, normal_blit_2, normal_blit_3, normal_blit_4
    1.82  };