diff --git a/include/SDL_surface.h b/include/SDL_surface.h index 63c4fac49..fed201a80 100644 --- a/include/SDL_surface.h +++ b/include/SDL_surface.h @@ -585,7 +585,7 @@ extern DECLSPEC int SDLCALL SDL_BlendFillRects * rectangle validation and clipping before passing it to SDL_LowerBlit() */ extern DECLSPEC int SDLCALL SDL_UpperBlit - (SDL_Surface * src, SDL_Rect * srcrect, + (SDL_Surface * src, const SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect); /** diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index 810360ee2..6dc64d207 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -640,7 +640,7 @@ SDL_LowerBlit(SDL_Surface * src, SDL_Rect * srcrect, int -SDL_UpperBlit(SDL_Surface * src, SDL_Rect * srcrect, +SDL_UpperBlit(SDL_Surface * src, const SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect) { SDL_Rect fulldst;