comparison include/SDL_video.h @ 3932:cd5b5c52a37e SDL-1.2

Const correctness patch for SDL_MapRGB and SDL_MapRGBA. Fixes Bugzilla #421.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 04 Apr 2007 09:40:40 +0000
parents eacc5bc01d1c
children a1b03ba2fcd0
comparison
equal deleted inserted replaced
3931:d65b4a73c991 3932:cd5b5c52a37e
445 445
446 /* 446 /*
447 * Maps an RGB triple to an opaque pixel value for a given pixel format 447 * Maps an RGB triple to an opaque pixel value for a given pixel format
448 */ 448 */
449 extern DECLSPEC Uint32 SDLCALL SDL_MapRGB 449 extern DECLSPEC Uint32 SDLCALL SDL_MapRGB
450 (SDL_PixelFormat *format, Uint8 r, Uint8 g, Uint8 b); 450 (const SDL_PixelFormat * const format,
451 const Uint8 r, const Uint8 g, const Uint8 b);
451 452
452 /* 453 /*
453 * Maps an RGBA quadruple to a pixel value for a given pixel format 454 * Maps an RGBA quadruple to a pixel value for a given pixel format
454 */ 455 */
455 extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA(SDL_PixelFormat *format, 456 extern DECLSPEC Uint32 SDLCALL SDL_MapRGBA
456 Uint8 r, Uint8 g, Uint8 b, Uint8 a); 457 (const SDL_PixelFormat * const format,
458 const Uint8 r, const Uint8 g, const Uint8 b, const Uint8 a);
457 459
458 /* 460 /*
459 * Maps a pixel value into the RGB components for a given pixel format 461 * Maps a pixel value into the RGB components for a given pixel format
460 */ 462 */
461 extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel, SDL_PixelFormat *fmt, 463 extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel, SDL_PixelFormat *fmt,