mirror of https://github.com/encounter/SDL.git
The SDL_PixelFormat* passed to SDL_ConvertSurface() should be const.
This commit is contained in:
parent
2bafbedac7
commit
b63d11ce9c
|
@ -357,7 +357,7 @@ extern DECLSPEC void SDLCALL SDL_GetClipRect(SDL_Surface * surface,
|
||||||
* surface.
|
* surface.
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurface
|
extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurface
|
||||||
(SDL_Surface * src, SDL_PixelFormat * fmt, Uint32 flags);
|
(SDL_Surface * src, const SDL_PixelFormat * fmt, Uint32 flags);
|
||||||
extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurfaceFormat
|
extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurfaceFormat
|
||||||
(SDL_Surface * src, Uint32 pixel_format, Uint32 flags);
|
(SDL_Surface * src, Uint32 pixel_format, Uint32 flags);
|
||||||
|
|
||||||
|
|
|
@ -801,7 +801,7 @@ SDL_UnlockSurface(SDL_Surface * surface)
|
||||||
* Convert a surface into the specified pixel format.
|
* Convert a surface into the specified pixel format.
|
||||||
*/
|
*/
|
||||||
SDL_Surface *
|
SDL_Surface *
|
||||||
SDL_ConvertSurface(SDL_Surface * surface, SDL_PixelFormat * format,
|
SDL_ConvertSurface(SDL_Surface * surface, const SDL_PixelFormat * format,
|
||||||
Uint32 flags)
|
Uint32 flags)
|
||||||
{
|
{
|
||||||
SDL_Surface *convert;
|
SDL_Surface *convert;
|
||||||
|
|
Loading…
Reference in New Issue