diff --git a/src/headers/vector2d.h b/src/headers/vector2d.h index 0a5d7be..e95e329 100644 --- a/src/headers/vector2d.h +++ b/src/headers/vector2d.h @@ -97,7 +97,7 @@ void frect_to_rect(const frect_t *frect, rect_t *rect); * * @return True if there is an intersection, else false. */ -#define has_intersection(A, B) SDL_HasIntersection(A, B) +#define has_intersection(A, B) SDL_HasRectIntersection(A, B) /** * @brief Verify if there is a intersction between two rectangles. (float) @@ -107,7 +107,7 @@ void frect_to_rect(const frect_t *frect, rect_t *rect); * * @return True if there is an intersection, else false. */ -#define fhas_intersection(A, B) SDL_HasIntersectionF(A, B) +#define fhas_intersection(A, B) SDL_HasRectIntersectionFloat(A, B) /** * @brief Verify if there is an intersection between two rectangles and get the intersection rectangle. (int)