Mercurial > sdl-ios-xcode
diff src/video/SDL_pixels.c @ 2102:0975e24a3670
Merged r3007:3008 from branches/SDL-1.2: MapRGB/MapRGBA const correctness.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 04 Apr 2007 09:43:53 +0000 |
parents | a788656ca29a |
children | 2c835d58faad |
line wrap: on
line diff
--- a/src/video/SDL_pixels.c Wed Apr 04 09:36:25 2007 +0000 +++ b/src/video/SDL_pixels.c Wed Apr 04 09:43:53 2007 +0000 @@ -537,7 +537,8 @@ /* Find the opaque pixel value corresponding to an RGB triple */ Uint32 -SDL_MapRGB(SDL_PixelFormat * format, Uint8 r, Uint8 g, Uint8 b) +SDL_MapRGB(const SDL_PixelFormat * const format, const Uint8 r, const Uint8 g, + const Uint8 b) { if (format->palette == NULL) { return (r >> format->Rloss) << format->Rshift @@ -550,7 +551,8 @@ /* Find the pixel value corresponding to an RGBA quadruple */ Uint32 -SDL_MapRGBA(SDL_PixelFormat * format, Uint8 r, Uint8 g, Uint8 b, Uint8 a) +SDL_MapRGBA(const SDL_PixelFormat * const format, const Uint8 r, const Uint8 g, + const Uint8 b, const Uint8 a) { if (format->palette == NULL) { return (r >> format->Rloss) << format->Rshift