comparison src/video/SDL_pixels.c @ 2120:2c835d58faad

make indent
author Sam Lantinga <slouken@libsdl.org>
date Thu, 14 Jun 2007 13:21:29 +0000
parents 0975e24a3670
children 340942cfda48
comparison
equal deleted inserted replaced
2119:9341a884a4d9 2120:2c835d58faad
549 } 549 }
550 } 550 }
551 551
552 /* Find the pixel value corresponding to an RGBA quadruple */ 552 /* Find the pixel value corresponding to an RGBA quadruple */
553 Uint32 553 Uint32
554 SDL_MapRGBA(const SDL_PixelFormat * const format, const Uint8 r, const Uint8 g, 554 SDL_MapRGBA(const SDL_PixelFormat * const format, const Uint8 r,
555 const Uint8 b, const Uint8 a) 555 const Uint8 g, const Uint8 b, const Uint8 a)
556 { 556 {
557 if (format->palette == NULL) { 557 if (format->palette == NULL) {
558 return (r >> format->Rloss) << format->Rshift 558 return (r >> format->Rloss) << format->Rshift
559 | (g >> format->Gloss) << format->Gshift 559 | (g >> format->Gloss) << format->Gshift
560 | (b >> format->Bloss) << format->Bshift 560 | (b >> format->Bloss) << format->Bshift