From c7c6cb464a637e6692bc925c0d3bc4613996cc36 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 4 Jan 2011 10:19:24 -0800 Subject: [PATCH] The source rectangle isn't modified in SDL_UpperBlit --- 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 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;