Skip to content

Commit

Permalink
lbm, pcx: fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Sep 12, 2019
1 parent 7ffcf94 commit 2a5484e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions IMG_lbm.c
Expand Up @@ -241,7 +241,7 @@ SDL_Surface *IMG_LoadLBM_RW( SDL_RWops *src )
stencil = (bmhd.mask & 1); /* There is a mask ( 'stencil' ) */

/* Allocate memory for a temporary buffer ( used for
decompression/deinterleaving ) */
decompression/deinterleaving ) */

MiniBuf = (Uint8 *)SDL_malloc( bytesperline * (nbplanes + stencil) );
if ( MiniBuf == NULL )
Expand Down Expand Up @@ -451,13 +451,13 @@ SDL_Surface *IMG_LoadLBM_RW( SDL_RWops *src )
finalcolor = pixelcolor;
}
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
*ptr++ = (Uint8)(finalcolor>>16);
*ptr++ = (Uint8)(finalcolor>>8);
*ptr++ = (Uint8)(finalcolor);
*ptr++ = (Uint8)(finalcolor>>16);
*ptr++ = (Uint8)(finalcolor>>8);
*ptr++ = (Uint8)(finalcolor);
#else
*ptr++ = (Uint8)(finalcolor);
*ptr++ = (Uint8)(finalcolor>>8);
*ptr++ = (Uint8)(finalcolor>>16);
*ptr++ = (Uint8)(finalcolor);
*ptr++ = (Uint8)(finalcolor>>8);
*ptr++ = (Uint8)(finalcolor>>16);
#endif
maskBit = maskBit>>1;
}
Expand Down
12 changes: 6 additions & 6 deletions IMG_pcx.c
Expand Up @@ -142,13 +142,13 @@ SDL_Surface *IMG_LoadPCX_RW(SDL_RWops *src)
} else if(pcxh.BitsPerPixel == 8 && pcxh.NPlanes == 3) {
bits = 24;
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
Rmask = 0x000000FF;
Gmask = 0x0000FF00;
Bmask = 0x00FF0000;
Rmask = 0x000000FF;
Gmask = 0x0000FF00;
Bmask = 0x00FF0000;
#else
Rmask = 0xFF0000;
Gmask = 0x00FF00;
Bmask = 0x0000FF;
Rmask = 0xFF0000;
Gmask = 0x00FF00;
Bmask = 0x0000FF;
#endif
} else {
error = "unsupported PCX format";
Expand Down

0 comments on commit 2a5484e

Please sign in to comment.