# HG changeset patch # User Sam Lantinga # Date 996557770 0 # Node ID 14af14ff7c195db47d8e6a5207373fd75cfd6b80 # Parent db0bee1c5845f5b8e65edb1a3562efe9d0f2d396 The rectangle argument to SDL_SetClipRect is really const diff -r db0bee1c5845 -r 14af14ff7c19 include/SDL_video.h --- a/include/SDL_video.h Tue Jul 31 04:06:56 2001 +0000 +++ b/include/SDL_video.h Tue Jul 31 05:36:10 2001 +0000 @@ -593,7 +593,7 @@ * Note that blits are automatically clipped to the edges of the source * and destination surfaces. */ -extern DECLSPEC SDL_bool SDL_SetClipRect(SDL_Surface *surface, SDL_Rect *rect); +extern DECLSPEC SDL_bool SDL_SetClipRect(SDL_Surface *surface, const SDL_Rect *rect); /* * Gets the clipping rectangle for the destination surface in a blit. diff -r db0bee1c5845 -r 14af14ff7c19 src/video/SDL_surface.c --- a/src/video/SDL_surface.c Tue Jul 31 04:06:56 2001 +0000 +++ b/src/video/SDL_surface.c Tue Jul 31 05:36:10 2001 +0000 @@ -275,7 +275,7 @@ * return true if the rectangles intersect, false otherwise */ static __inline__ -SDL_bool SDL_IntersectRect(SDL_Rect *A, SDL_Rect *B, SDL_Rect *intersection) +SDL_bool SDL_IntersectRect(const SDL_Rect *A, const SDL_Rect *B, SDL_Rect *intersection) { int Amin, Amax, Bmin, Bmax; @@ -308,7 +308,7 @@ /* * Set the clipping rectangle for a blittable surface */ -SDL_bool SDL_SetClipRect(SDL_Surface *surface, SDL_Rect *rect) +SDL_bool SDL_SetClipRect(SDL_Surface *surface, const SDL_Rect *rect) { SDL_Rect full_rect;