From b63d11ce9c132b7ae5338ddfd0ac2e6b1746cb48 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 4 Sep 2013 23:40:11 -0400 Subject: [PATCH] The SDL_PixelFormat* passed to SDL_ConvertSurface() should be const. --- include/SDL_surface.h | 2 +- src/video/SDL_surface.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL_surface.h b/include/SDL_surface.h index 4062012dfd270..e18153a6942f9 100644 --- a/include/SDL_surface.h +++ b/include/SDL_surface.h @@ -357,7 +357,7 @@ extern DECLSPEC void SDLCALL SDL_GetClipRect(SDL_Surface * surface, * surface. */ 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 (SDL_Surface * src, Uint32 pixel_format, Uint32 flags); diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index 84d3a4dc65bb2..1c4631c401b5b 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -801,7 +801,7 @@ SDL_UnlockSurface(SDL_Surface * surface) * Convert a surface into the specified pixel format. */ SDL_Surface * -SDL_ConvertSurface(SDL_Surface * surface, SDL_PixelFormat * format, +SDL_ConvertSurface(SDL_Surface * surface, const SDL_PixelFormat * format, Uint32 flags) { SDL_Surface *convert;