indent
authorSam Lantinga <slouken@libsdl.org>
Fri, 17 Aug 2007 02:55:21 +0000
changeset 2260202ddfd1cfb1
parent 2259 1e690901ecd7
child 2261 c20476d7d7b3
indent
src/video/SDL_blit.c
src/video/SDL_blit.h
src/video/SDL_blit_A.c
src/video/SDL_pixels.c
src/video/SDL_surface.c
     1.1 --- a/src/video/SDL_blit.c	Fri Aug 17 02:54:50 2007 +0000
     1.2 +++ b/src/video/SDL_blit.c	Fri Aug 17 02:55:21 2007 +0000
     1.3 @@ -82,7 +82,7 @@
     1.4          info.dst = dst->format;
     1.5          info.ckey = src->map->ckey;
     1.6          info.cmod = src->map->cmod;
     1.7 -        RunBlit = (SDL_loblit)src->map->data;
     1.8 +        RunBlit = (SDL_loblit) src->map->data;
     1.9  
    1.10          /* Run the actual software blit */
    1.11          RunBlit(&info);
     2.1 --- a/src/video/SDL_blit.h	Fri Aug 17 02:54:50 2007 +0000
     2.2 +++ b/src/video/SDL_blit.h	Fri Aug 17 02:55:21 2007 +0000
     2.3 @@ -62,8 +62,8 @@
     2.4      Uint8 *table;
     2.5      SDL_blit blit;
     2.6      void *data;
     2.7 -    Uint32 ckey;    /* colorkey */
     2.8 -    Uint32 cmod;    /* ARGB modulation */
     2.9 +    Uint32 ckey;                /* colorkey */
    2.10 +    Uint32 cmod;                /* ARGB modulation */
    2.11  
    2.12      /* the version count matches the destination; mismatch indicates
    2.13         an invalid mapping */
     3.1 --- a/src/video/SDL_blit_A.c	Fri Aug 17 02:54:50 2007 +0000
     3.2 +++ b/src/video/SDL_blit_A.c	Fri Aug 17 02:55:21 2007 +0000
     3.3 @@ -371,7 +371,7 @@
     3.4      __m64 src1, dst1, mm_alpha, mm_zero, dmask;
     3.5  
     3.6      mm_zero = _mm_setzero_si64();       /* 0 -> mm_zero */
     3.7 -	multmask = 0xFFFF;
     3.8 +    multmask = 0xFFFF;
     3.9      multmask <<= (ashift * 2);
    3.10      multmask = ~multmask;
    3.11      dmask = *(__m64 *) & multmask;      /* dst alpha mask -> dmask */
    3.12 @@ -1389,7 +1389,7 @@
    3.13      __m64 src1, dst1, mm_alpha, mm_zero, dmask;
    3.14  
    3.15      mm_zero = _mm_setzero_si64();       /* 0 -> mm_zero */
    3.16 -	multmask = 0xFFFF;
    3.17 +    multmask = 0xFFFF;
    3.18      multmask <<= (ashift * 2);
    3.19      multmask = ~multmask;
    3.20      dmask = *(__m64 *) & multmask;      /* dst alpha mask -> dmask */
    3.21 @@ -1874,7 +1874,7 @@
    3.22  static void
    3.23  Blit555to555SurfaceAlpha(SDL_BlitInfo * info)
    3.24  {
    3.25 -    unsigned alpha = (info->cmod >> 24);  /* downscale alpha to 5 bits */
    3.26 +    unsigned alpha = (info->cmod >> 24);        /* downscale alpha to 5 bits */
    3.27      if (alpha == 128) {
    3.28          Blit16to16SurfaceAlpha128(info, 0xfbde);
    3.29      } else {
     4.1 --- a/src/video/SDL_pixels.c	Fri Aug 17 02:54:50 2007 +0000
     4.2 +++ b/src/video/SDL_pixels.c	Fri Aug 17 02:55:21 2007 +0000
     4.3 @@ -673,7 +673,7 @@
     4.4      Uint8 *map;
     4.5      int i;
     4.6      int bpp;
     4.7 -    unsigned Amod, Rmod, Gmod, Bmod; 
     4.8 +    unsigned Amod, Rmod, Gmod, Bmod;
     4.9      SDL_Palette *pal = src->palette;
    4.10  
    4.11      bpp = ((dst->BytesPerPixel == 3) ? 4 : dst->BytesPerPixel);
     5.1 --- a/src/video/SDL_surface.c	Fri Aug 17 02:54:50 2007 +0000
     5.2 +++ b/src/video/SDL_surface.c	Fri Aug 17 02:55:21 2007 +0000
     5.3 @@ -286,7 +286,7 @@
     5.4      if (flag) {
     5.5          surface->flags |= SDL_SRCALPHA;
     5.6          surface->map->cmod &= 0x00FFFFFF;
     5.7 -        surface->map->cmod |= ((Uint32)value << 24);
     5.8 +        surface->map->cmod |= ((Uint32) value << 24);
     5.9          if (flag & SDL_RLEACCELOK) {
    5.10              surface->flags |= SDL_RLEACCELOK;
    5.11          } else {
    5.12 @@ -611,7 +611,7 @@
    5.13          if (format->Amask) {
    5.14              surface->flags &= ~SDL_SRCALPHA;
    5.15          } else {
    5.16 -            alpha = (Uint8)(surface->map->cmod >> 24);
    5.17 +            alpha = (Uint8) (surface->map->cmod >> 24);
    5.18              SDL_SetAlpha(surface, 0, 0);
    5.19          }
    5.20      }