src/video/SDL_blit_0.c
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/src/video/SDL_blit_0.c	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/src/video/SDL_blit_0.c	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -27,7 +27,7 @@
     1.4  /* Functions to blit from bitmaps to other surfaces */
     1.5  
     1.6  static void
     1.7 -BlitBto1 (SDL_BlitInfo * info)
     1.8 +BlitBto1(SDL_BlitInfo * info)
     1.9  {
    1.10      int c;
    1.11      int width, height;
    1.12 @@ -81,7 +81,7 @@
    1.13      }
    1.14  }
    1.15  static void
    1.16 -BlitBto2 (SDL_BlitInfo * info)
    1.17 +BlitBto2(SDL_BlitInfo * info)
    1.18  {
    1.19      int c;
    1.20      int width, height;
    1.21 @@ -117,7 +117,7 @@
    1.22      }
    1.23  }
    1.24  static void
    1.25 -BlitBto3 (SDL_BlitInfo * info)
    1.26 +BlitBto3(SDL_BlitInfo * info)
    1.27  {
    1.28      int c, o;
    1.29      int width, height;
    1.30 @@ -155,7 +155,7 @@
    1.31      }
    1.32  }
    1.33  static void
    1.34 -BlitBto4 (SDL_BlitInfo * info)
    1.35 +BlitBto4(SDL_BlitInfo * info)
    1.36  {
    1.37      int width, height;
    1.38      Uint8 *src;
    1.39 @@ -192,7 +192,7 @@
    1.40  }
    1.41  
    1.42  static void
    1.43 -BlitBto1Key (SDL_BlitInfo * info)
    1.44 +BlitBto1Key(SDL_BlitInfo * info)
    1.45  {
    1.46      int width = info->d_width;
    1.47      int height = info->d_height;
    1.48 @@ -245,7 +245,7 @@
    1.49  }
    1.50  
    1.51  static void
    1.52 -BlitBto2Key (SDL_BlitInfo * info)
    1.53 +BlitBto2Key(SDL_BlitInfo * info)
    1.54  {
    1.55      int width = info->d_width;
    1.56      int height = info->d_height;
    1.57 @@ -280,7 +280,7 @@
    1.58  }
    1.59  
    1.60  static void
    1.61 -BlitBto3Key (SDL_BlitInfo * info)
    1.62 +BlitBto3Key(SDL_BlitInfo * info)
    1.63  {
    1.64      int width = info->d_width;
    1.65      int height = info->d_height;
    1.66 @@ -303,7 +303,7 @@
    1.67              }
    1.68              bit = (byte & 0x80) >> 7;
    1.69              if (bit != ckey) {
    1.70 -                SDL_memcpy (dst, &palmap[bit * 4], 3);
    1.71 +                SDL_memcpy(dst, &palmap[bit * 4], 3);
    1.72              }
    1.73              byte <<= 1;
    1.74              dst += 3;
    1.75 @@ -314,7 +314,7 @@
    1.76  }
    1.77  
    1.78  static void
    1.79 -BlitBto4Key (SDL_BlitInfo * info)
    1.80 +BlitBto4Key(SDL_BlitInfo * info)
    1.81  {
    1.82      int width = info->d_width;
    1.83      int height = info->d_height;
    1.84 @@ -349,7 +349,7 @@
    1.85  }
    1.86  
    1.87  static void
    1.88 -BlitBtoNAlpha (SDL_BlitInfo * info)
    1.89 +BlitBtoNAlpha(SDL_BlitInfo * info)
    1.90  {
    1.91      int width = info->d_width;
    1.92      int height = info->d_height;
    1.93 @@ -381,9 +381,9 @@
    1.94                  sR = srcpal[bit].r;
    1.95                  sG = srcpal[bit].g;
    1.96                  sB = srcpal[bit].b;
    1.97 -                DISEMBLE_RGB (dst, dstbpp, dstfmt, pixel, dR, dG, dB);
    1.98 -                ALPHA_BLEND (sR, sG, sB, A, dR, dG, dB);
    1.99 -                ASSEMBLE_RGB (dst, dstbpp, dstfmt, dR, dG, dB);
   1.100 +                DISEMBLE_RGB(dst, dstbpp, dstfmt, pixel, dR, dG, dB);
   1.101 +                ALPHA_BLEND(sR, sG, sB, A, dR, dG, dB);
   1.102 +                ASSEMBLE_RGB(dst, dstbpp, dstfmt, dR, dG, dB);
   1.103              }
   1.104              byte <<= 1;
   1.105              dst += dstbpp;
   1.106 @@ -394,7 +394,7 @@
   1.107  }
   1.108  
   1.109  static void
   1.110 -BlitBtoNAlphaKey (SDL_BlitInfo * info)
   1.111 +BlitBtoNAlphaKey(SDL_BlitInfo * info)
   1.112  {
   1.113      int width = info->d_width;
   1.114      int height = info->d_height;
   1.115 @@ -428,9 +428,9 @@
   1.116                  sR = srcpal[bit].r;
   1.117                  sG = srcpal[bit].g;
   1.118                  sB = srcpal[bit].b;
   1.119 -                DISEMBLE_RGB (dst, dstbpp, dstfmt, pixel, dR, dG, dB);
   1.120 -                ALPHA_BLEND (sR, sG, sB, A, dR, dG, dB);
   1.121 -                ASSEMBLE_RGB (dst, dstbpp, dstfmt, dR, dG, dB);
   1.122 +                DISEMBLE_RGB(dst, dstbpp, dstfmt, pixel, dR, dG, dB);
   1.123 +                ALPHA_BLEND(sR, sG, sB, A, dR, dG, dB);
   1.124 +                ASSEMBLE_RGB(dst, dstbpp, dstfmt, dR, dG, dB);
   1.125              }
   1.126              byte <<= 1;
   1.127              dst += dstbpp;
   1.128 @@ -449,7 +449,7 @@
   1.129  };
   1.130  
   1.131  SDL_loblit
   1.132 -SDL_CalculateBlit0 (SDL_Surface * surface, int blit_index)
   1.133 +SDL_CalculateBlit0(SDL_Surface * surface, int blit_index)
   1.134  {
   1.135      int which;
   1.136