diff --git a/src/headers/vector2d.h b/src/headers/vector2d.h index e95e329..5f8d8f7 100644 --- a/src/headers/vector2d.h +++ b/src/headers/vector2d.h @@ -118,7 +118,7 @@ void frect_to_rect(const frect_t *frect, rect_t *rect); * * @return True if there is an intersection, else false. */ -#define intersect_rect(A, B, result) SDL_IntersectRect(A, B, result) +#define intersect_rect(A, B, result) SDL_GetRectIntersection(A, B, result) /** * @brief Verify if there is an intersection between two rectangles and get the intersection rectangle. (float) @@ -129,7 +129,7 @@ void frect_to_rect(const frect_t *frect, rect_t *rect); * * @return True if there is an intersection, else false. */ -#define intersect_frect(A, B, result) SDL_IntersectFRect(A, B, result) +#define intersect_frect(A, B, result) SDL_GetRectIntersectionFloat(A, B, result) float lerp(float a, float b, float t);