The SDL_PixelFormat* passed to SDL_ConvertSurface() should be const.

This commit is contained in:
Ryan C. Gordon 2013-09-04 23:40:11 -04:00
parent c4aae28ea4
commit d7839b7827
2 changed files with 2 additions and 2 deletions

View file

@ -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;