Mercurial > sdl-ios-xcode
comparison include/SDL_video.h @ 4173:34068be6aa0b SDL-1.2
Fixed bug #421
Comment #3 From esigra@gmail.com 2008-04-09 11:46:46 (-) [reply] -------
This bug also needs to be fixed for SDL_GetRGB and SDL_GetRGBA (those should
not change the format of the surface either). Until this is fixed, I still need
to const_cast the format parameter in calls to those functions.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 13 Apr 2009 09:03:35 +0000 |
parents | a1b03ba2fcd0 |
children | 4c4113c2162c |
comparison
equal
deleted
inserted
replaced
4172:48f1406df2a8 | 4173:34068be6aa0b |
---|---|
458 const Uint8 r, const Uint8 g, const Uint8 b, const Uint8 a); | 458 const Uint8 r, const Uint8 g, const Uint8 b, const Uint8 a); |
459 | 459 |
460 /* | 460 /* |
461 * 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 |
462 */ | 462 */ |
463 extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel, SDL_PixelFormat *fmt, | 463 extern DECLSPEC void SDLCALL SDL_GetRGB(Uint32 pixel, |
464 const SDL_PixelFormat * const fmt, | |
464 Uint8 *r, Uint8 *g, Uint8 *b); | 465 Uint8 *r, Uint8 *g, Uint8 *b); |
465 | 466 |
466 /* | 467 /* |
467 * Maps a pixel value into the RGBA components for a given pixel format | 468 * Maps a pixel value into the RGBA components for a given pixel format |
468 */ | 469 */ |
469 extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel, SDL_PixelFormat *fmt, | 470 extern DECLSPEC void SDLCALL SDL_GetRGBA(Uint32 pixel, |
470 Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a); | 471 const SDL_PixelFormat * const fmt, |
472 Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a); | |
471 | 473 |
472 /* | 474 /* |
473 * Allocate and free an RGB surface (must be called after SDL_SetVideoMode) | 475 * Allocate and free an RGB surface (must be called after SDL_SetVideoMode) |
474 * If the depth is 4 or 8 bits, an empty palette is allocated for the surface. | 476 * If the depth is 4 or 8 bits, an empty palette is allocated for the surface. |
475 * If the depth is greater than 8 bits, the pixel format is set using the | 477 * If the depth is greater than 8 bits, the pixel format is set using the |