Commit ca871fdc authored by Sam Lantinga's avatar Sam Lantinga

Fixed return value

parent b674add8
...@@ -595,7 +595,7 @@ SDL_SetClipRect(SDL_Surface * surface, const SDL_Rect * rect) ...@@ -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);
} }
......
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