Commit 6bb44f76 authored by Sam Lantinga's avatar Sam Lantinga

The rectangle argument to SDL_SetClipRect is really const

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40131
parent fa21275a
...@@ -593,7 +593,7 @@ extern DECLSPEC int SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 alpha) ...@@ -593,7 +593,7 @@ extern DECLSPEC int SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 alpha)
* Note that blits are automatically clipped to the edges of the source * Note that blits are automatically clipped to the edges of the source
* and destination surfaces. * 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. * Gets the clipping rectangle for the destination surface in a blit.
......
...@@ -275,7 +275,7 @@ int SDL_SetAlpha (SDL_Surface *surface, Uint32 flag, Uint8 value) ...@@ -275,7 +275,7 @@ int SDL_SetAlpha (SDL_Surface *surface, Uint32 flag, Uint8 value)
* return true if the rectangles intersect, false otherwise * return true if the rectangles intersect, false otherwise
*/ */
static __inline__ 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; int Amin, Amax, Bmin, Bmax;
...@@ -308,7 +308,7 @@ SDL_bool SDL_IntersectRect(SDL_Rect *A, SDL_Rect *B, SDL_Rect *intersection) ...@@ -308,7 +308,7 @@ SDL_bool SDL_IntersectRect(SDL_Rect *A, SDL_Rect *B, SDL_Rect *intersection)
/* /*
* Set the clipping rectangle for a blittable surface * 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; SDL_Rect full_rect;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment