include/SDL_video.h
branchSDL-1.2
changeset 4173 34068be6aa0b
parent 4159 a1b03ba2fcd0
child 4217 4c4113c2162c
     1.1 --- a/include/SDL_video.h	Mon Apr 13 08:49:41 2009 +0000
     1.2 +++ b/include/SDL_video.h	Mon Apr 13 09:03:35 2009 +0000
     1.3 @@ -460,14 +460,16 @@
     1.4  /*
     1.5   * Maps a pixel value into the RGB components for a given pixel format
     1.6   */
     1.7 -extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel, SDL_PixelFormat *fmt,
     1.8 +extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel,
     1.9 +				const SDL_PixelFormat * const fmt,
    1.10  				Uint8 *r, Uint8 *g, Uint8 *b);
    1.11  
    1.12  /*
    1.13   * Maps a pixel value into the RGBA components for a given pixel format
    1.14   */
    1.15 -extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel, SDL_PixelFormat *fmt,
    1.16 -				 Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a);
    1.17 +extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel,
    1.18 +				const SDL_PixelFormat * const fmt,
    1.19 +				Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a);
    1.20  
    1.21  /*
    1.22   * Allocate and free an RGB surface (must be called after SDL_SetVideoMode)