Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
indent
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 17, 2007
1 parent 88a2993 commit 3ac030b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/video/SDL_blit.c
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/video/SDL_blit.h
Expand Up @@ -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 */
Expand Down
6 changes: 3 additions & 3 deletions src/video/SDL_blit_A.c
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/video/SDL_pixels.c
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/video/SDL_surface.c
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 3ac030b

Please sign in to comment.