mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Remove const from parameter of inline function SDL_RectsEqualEpsilon()
This commit is contained in:

committed by
Sam Lantinga

parent
07c22da464
commit
8527d042bc
@@ -371,7 +371,7 @@ SDL_FORCE_INLINE bool SDL_RectEmptyFloat(const SDL_FRect *r)
|
|||||||
*
|
*
|
||||||
* \sa SDL_RectsEqualFloat
|
* \sa SDL_RectsEqualFloat
|
||||||
*/
|
*/
|
||||||
SDL_FORCE_INLINE bool SDL_RectsEqualEpsilon(const SDL_FRect *a, const SDL_FRect *b, const float epsilon)
|
SDL_FORCE_INLINE bool SDL_RectsEqualEpsilon(const SDL_FRect *a, const SDL_FRect *b, float epsilon)
|
||||||
{
|
{
|
||||||
return (a && b && ((a == b) ||
|
return (a && b && ((a == b) ||
|
||||||
((SDL_fabsf(a->x - b->x) <= epsilon) &&
|
((SDL_fabsf(a->x - b->x) <= epsilon) &&
|
||||||
|
Reference in New Issue
Block a user