Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed return value
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 7, 2011
1 parent 69a41fa commit 99434a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_surface.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 99434a9

Please sign in to comment.