changeset 4949:68da5a234bba

The source rectangle isn't modified in SDL_UpperBlit
author Sam Lantinga <slouken@libsdl.org>
date Tue, 04 Jan 2011 10:19:24 -0800
parents 6546eaa20271
children 2ac33eaa8a31
files include/SDL_surface.h src/video/SDL_surface.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/include/SDL_surface.h	Mon Jan 03 14:39:41 2011 -0800
+++ b/include/SDL_surface.h	Tue Jan 04 10:19:24 2011 -0800
@@ -585,7 +585,7 @@
  *  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);
 
 /**
--- a/src/video/SDL_surface.c	Mon Jan 03 14:39:41 2011 -0800
+++ b/src/video/SDL_surface.c	Tue Jan 04 10:19:24 2011 -0800
@@ -640,7 +640,7 @@
 
 
 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;