Fixed return value

This commit is contained in:
Sam Lantinga 2011-01-07 09:53:08 -08:00
parent b674add868
commit ca871fdc4b

View file

@ -595,7 +595,7 @@ SDL_SetClipRect(SDL_Surface * surface, const SDL_Rect * rect)
/* Set the clipping rectangle */
if (!rect) {
surface->clip_rect = full_rect;
return 1;
return SDL_TRUE;
}
return SDL_IntersectRect(rect, &full_rect, &surface->clip_rect);
}