Explorar el Código

Fixed using SDL_PointInRect() from C++.

Ryan C. Gordon hace 12 años
padre
commit
7153c2dad1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      include/SDL_rect.h

+ 1 - 1
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;
 }
 
 /**