Skip to content

Commit

Permalink
Fixed using SDL_PointInRect() from C++.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 30, 2014
1 parent bb7a27f commit 7153c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SDL_rect.h
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 7153c2d

Please sign in to comment.