# HG changeset patch
# User Sam Lantinga <slouken@libsdl.org>
# Date 1294165164 28800
# Node ID 68da5a234bba81d4164dfe207605b228db004031
# Parent  6546eaa20271f99b8f524b90adfd944d0cd9c03a
The source rectangle isn't modified in SDL_UpperBlit

diff -r 6546eaa20271 -r 68da5a234bba include/SDL_surface.h
--- 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);
 
 /**
diff -r 6546eaa20271 -r 68da5a234bba src/video/SDL_surface.c
--- 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;