Ver Fonte

Remove const from parameter of inline function SDL_RectsEqualEpsilon()

Petar Popovic há 2 meses atrás
pai
commit
8527d042bc
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      include/SDL3/SDL_rect.h

+ 1 - 1
include/SDL3/SDL_rect.h

@@ -371,7 +371,7 @@ SDL_FORCE_INLINE bool SDL_RectEmptyFloat(const SDL_FRect *r)
  *
  * \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) ||
             ((SDL_fabsf(a->x - b->x) <= epsilon) &&