From 7153c2dad1247bda5a77e7f4d1bf4c17724e7917 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 30 May 2014 09:50:47 -0400 Subject: [PATCH] Fixed using SDL_PointInRect() from C++. --- include/SDL_rect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL_rect.h b/include/SDL_rect.h index e170a0163566f..6bfce3115dedd 100644 --- a/include/SDL_rect.h +++ b/include/SDL_rect.h @@ -73,7 +73,7 @@ typedef struct SDL_Rect SDL_FORCE_INLINE SDL_bool SDL_PointInRect(const SDL_Point *p, const SDL_Rect *r) { return ( (p->x >= r->x) && (p->x < (r->x + r->w)) && - (p->y >= r->y) && (p->y < (r->y + r->h)) ); + (p->y >= r->y) && (p->y < (r->y + r->h)) ) ? SDL_TRUE : SDL_FALSE; } /**