From 99434a968a9d26dbdc0df14b781b8942bdb1c658 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 7 Jan 2011 09:53:08 -0800 Subject: [PATCH] Fixed return value --- src/video/SDL_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index 6dc64d207..2e2f583b7 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -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); }