Mercurial > sdl-ios-xcode
diff src/video/SDL_surface.c @ 130:14af14ff7c19
The rectangle argument to SDL_SetClipRect is really const
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 31 Jul 2001 05:36:10 +0000 |
parents | 74212992fb08 |
children | e8157fcb3114 |
line wrap: on
line diff
--- 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;