Mercurial > sdl-ios-xcode
comparison src/video/SDL_pixels.c @ 2260:202ddfd1cfb1
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 17 Aug 2007 02:55:21 +0000 |
parents | 340942cfda48 |
children | c785543d1843 |
comparison
equal
deleted
inserted
replaced
2259:1e690901ecd7 | 2260:202ddfd1cfb1 |
---|---|
671 Map1toN(SDL_PixelFormat * src, Uint32 cmod, SDL_PixelFormat * dst) | 671 Map1toN(SDL_PixelFormat * src, Uint32 cmod, SDL_PixelFormat * dst) |
672 { | 672 { |
673 Uint8 *map; | 673 Uint8 *map; |
674 int i; | 674 int i; |
675 int bpp; | 675 int bpp; |
676 unsigned Amod, Rmod, Gmod, Bmod; | 676 unsigned Amod, Rmod, Gmod, Bmod; |
677 SDL_Palette *pal = src->palette; | 677 SDL_Palette *pal = src->palette; |
678 | 678 |
679 bpp = ((dst->BytesPerPixel == 3) ? 4 : dst->BytesPerPixel); | 679 bpp = ((dst->BytesPerPixel == 3) ? 4 : dst->BytesPerPixel); |
680 map = (Uint8 *) SDL_malloc(pal->ncolors * bpp); | 680 map = (Uint8 *) SDL_malloc(pal->ncolors * bpp); |
681 if (map == NULL) { | 681 if (map == NULL) { |