From 5e7ab73dbccf334f2b1e82a58c42acd1df84a5c1 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 27 Jul 2023 12:57:12 -0700
Subject: [PATCH] Use SDL_TRUE instead of 1 for the freesrc parameter
---
src/IMG.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/IMG.c b/src/IMG.c
index 128d8ff3..3b91414a 100644
--- a/src/IMG.c
+++ b/src/IMG.c
@@ -190,7 +190,7 @@ SDL_Surface *IMG_Load(const char *file)
/* The error message has been set in SDL_RWFromFile */
return NULL;
}
- return IMG_LoadTyped_RW(src, 1, ext);
+ return IMG_LoadTyped_RW(src, SDL_TRUE, ext);
}
#endif
@@ -334,7 +334,7 @@ IMG_Animation *IMG_LoadAnimation(const char *file)
/* The error message has been set in SDL_RWFromFile */
return NULL;
}
- return IMG_LoadAnimationTyped_RW(src, 1, ext);
+ return IMG_LoadAnimationTyped_RW(src, SDL_TRUE, ext);
}
/* Load an animation from an SDL datasource (for compatibility) */