Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

indent

  • Loading branch information
slouken committed Aug 17, 2007
1 parent 88a2993 commit 3ac030b6afc5db3f335ba5405184dd2c67a15244
Showing with 9 additions and 9 deletions.
  1. +1 −1 src/video/SDL_blit.c
  2. +2 −2 src/video/SDL_blit.h
  3. +3 −3 src/video/SDL_blit_A.c
  4. +1 −1 src/video/SDL_pixels.c
  5. +2 −2 src/video/SDL_surface.c
@@ -82,7 +82,7 @@ SDL_SoftBlit(SDL_Surface * src, SDL_Rect * srcrect,
info.dst = dst->format;
info.ckey = src->map->ckey;
info.cmod = src->map->cmod;
RunBlit = (SDL_loblit)src->map->data;
RunBlit = (SDL_loblit) src->map->data;

/* Run the actual software blit */
RunBlit(&info);
@@ -62,8 +62,8 @@ typedef struct SDL_BlitMap
Uint8 *table;
SDL_blit blit;
void *data;
Uint32 ckey; /* colorkey */
Uint32 cmod; /* ARGB modulation */
Uint32 ckey; /* colorkey */
Uint32 cmod; /* ARGB modulation */

/* the version count matches the destination; mismatch indicates
an invalid mapping */
@@ -371,7 +371,7 @@ BlitRGBtoRGBPixelAlphaMMX(SDL_BlitInfo * info)
__m64 src1, dst1, mm_alpha, mm_zero, dmask;

mm_zero = _mm_setzero_si64(); /* 0 -> mm_zero */
multmask = 0xFFFF;
multmask = 0xFFFF;
multmask <<= (ashift * 2);
multmask = ~multmask;
dmask = *(__m64 *) & multmask; /* dst alpha mask -> dmask */
@@ -1389,7 +1389,7 @@ BlitRGBtoRGBPixelAlphaMMX3DNOW(SDL_BlitInfo * info)
__m64 src1, dst1, mm_alpha, mm_zero, dmask;

mm_zero = _mm_setzero_si64(); /* 0 -> mm_zero */
multmask = 0xFFFF;
multmask = 0xFFFF;
multmask <<= (ashift * 2);
multmask = ~multmask;
dmask = *(__m64 *) & multmask; /* dst alpha mask -> dmask */
@@ -1874,7 +1874,7 @@ Blit565to565SurfaceAlpha(SDL_BlitInfo * info)
static void
Blit555to555SurfaceAlpha(SDL_BlitInfo * info)
{
unsigned alpha = (info->cmod >> 24); /* downscale alpha to 5 bits */
unsigned alpha = (info->cmod >> 24); /* downscale alpha to 5 bits */
if (alpha == 128) {
Blit16to16SurfaceAlpha128(info, 0xfbde);
} else {
@@ -673,7 +673,7 @@ Map1toN(SDL_PixelFormat * src, Uint32 cmod, SDL_PixelFormat * dst)
Uint8 *map;
int i;
int bpp;
unsigned Amod, Rmod, Gmod, Bmod;
unsigned Amod, Rmod, Gmod, Bmod;
SDL_Palette *pal = src->palette;

bpp = ((dst->BytesPerPixel == 3) ? 4 : dst->BytesPerPixel);
@@ -286,7 +286,7 @@ SDL_SetAlpha(SDL_Surface * surface, Uint32 flag, Uint8 value)
if (flag) {
surface->flags |= SDL_SRCALPHA;
surface->map->cmod &= 0x00FFFFFF;
surface->map->cmod |= ((Uint32)value << 24);
surface->map->cmod |= ((Uint32) value << 24);
if (flag & SDL_RLEACCELOK) {
surface->flags |= SDL_RLEACCELOK;
} else {
@@ -611,7 +611,7 @@ SDL_ConvertSurface(SDL_Surface * surface,
if (format->Amask) {
surface->flags &= ~SDL_SRCALPHA;
} else {
alpha = (Uint8)(surface->map->cmod >> 24);
alpha = (Uint8) (surface->map->cmod >> 24);
SDL_SetAlpha(surface, 0, 0);
}
}

0 comments on commit 3ac030b

Please sign in to comment.