include/SDL_video.h
changeset 2102 0975e24a3670
parent 1986 f4c65e3bfaed
child 2120 2c835d58faad
     1.1 --- a/include/SDL_video.h	Wed Apr 04 09:36:25 2007 +0000
     1.2 +++ b/include/SDL_video.h	Wed Apr 04 09:43:53 2007 +0000
     1.3 @@ -1300,15 +1300,16 @@
     1.4  /*
     1.5   * Maps an RGB triple to an opaque pixel value for a given pixel format
     1.6   */
     1.7 -extern DECLSPEC Uint32 SDLCALL SDL_MapRGB
     1.8 -    (SDL_PixelFormat * format, Uint8 r, Uint8 g, Uint8 b);
     1.9 +extern DECLSPEC Uint32 SDLCALL SDL_MapRGB(const SDL_PixelFormat * const format,
    1.10 +                                          const Uint8 r, const Uint8 g,
    1.11 +                                          const Uint8 b);
    1.12  
    1.13  /*
    1.14   * Maps an RGBA quadruple to a pixel value for a given pixel format
    1.15   */
    1.16 -extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA(SDL_PixelFormat * format,
    1.17 -                                           Uint8 r, Uint8 g, Uint8 b,
    1.18 -                                           Uint8 a);
    1.19 +extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA(const SDL_PixelFormat * const fmt,
    1.20 +                                           const Uint8 r, const Uint8 g,
    1.21 +                                           const Uint8 b, const Uint8 a);
    1.22  
    1.23  /*
    1.24   * Maps a pixel value into the RGB components for a given pixel format