Corrected other sdl function names.

This commit is contained in:
Ulysse Cura 2026-08-04 21:53:08 +02:00
parent d648bcbb9b
commit 1f3a17a465
1 changed files with 2 additions and 2 deletions

View File

@ -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);