The SDL_PixelFormat* passed to SDL_ConvertSurface() should be const.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 04 Sep 2013 23:40:11 -0400
changeset 7725c61ab95113fe
parent 7724 54c06b0f65d9
child 7727 627ce8499c81
The SDL_PixelFormat* passed to SDL_ConvertSurface() should be const.
include/SDL_surface.h
src/video/SDL_surface.c
     1.1 --- a/include/SDL_surface.h	Sat Aug 31 01:36:38 2013 -0400
     1.2 +++ b/include/SDL_surface.h	Wed Sep 04 23:40:11 2013 -0400
     1.3 @@ -357,7 +357,7 @@
     1.4   *  surface.
     1.5   */
     1.6  extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurface
     1.7 -    (SDL_Surface * src, SDL_PixelFormat * fmt, Uint32 flags);
     1.8 +    (SDL_Surface * src, const SDL_PixelFormat * fmt, Uint32 flags);
     1.9  extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurfaceFormat
    1.10      (SDL_Surface * src, Uint32 pixel_format, Uint32 flags);
    1.11  
     2.1 --- a/src/video/SDL_surface.c	Sat Aug 31 01:36:38 2013 -0400
     2.2 +++ b/src/video/SDL_surface.c	Wed Sep 04 23:40:11 2013 -0400
     2.3 @@ -801,7 +801,7 @@
     2.4   * Convert a surface into the specified pixel format.
     2.5   */
     2.6  SDL_Surface *
     2.7 -SDL_ConvertSurface(SDL_Surface * surface, SDL_PixelFormat * format,
     2.8 +SDL_ConvertSurface(SDL_Surface * surface, const SDL_PixelFormat * format,
     2.9                     Uint32 flags)
    2.10  {
    2.11      SDL_Surface *convert;