Fixed return value
This commit is contained in:
parent
b674add868
commit
ca871fdc4b
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ SDL_SetClipRect(SDL_Surface * surface, const SDL_Rect * rect)
|
||||||
/* Set the clipping rectangle */
|
/* Set the clipping rectangle */
|
||||||
if (!rect) {
|
if (!rect) {
|
||||||
surface->clip_rect = full_rect;
|
surface->clip_rect = full_rect;
|
||||||
return 1;
|
return SDL_TRUE;
|
||||||
}
|
}
|
||||||
return SDL_IntersectRect(rect, &full_rect, &surface->clip_rect);
|
return SDL_IntersectRect(rect, &full_rect, &surface->clip_rect);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue