Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
The source rectangle isn't modified in SDL_UpperBlit
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 4, 2011
1 parent 4263b4f commit d9de3e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/SDL_surface.h
Expand Up @@ -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);

/**
Expand Down
2 changes: 1 addition & 1 deletion src/video/SDL_surface.c
Expand Up @@ -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;
Expand Down

0 comments on commit d9de3e6

Please sign in to comment.