From 840d1d80ce9fec099a656e1fa5078a9f1980d88d Mon Sep 17 00:00:00 2001
From: Nathan Houghton <[EMAIL REDACTED]>
Date: Fri, 31 Dec 2021 11:33:43 -0800
Subject: [PATCH] Update IMG_Init() return value to match documentation
---
IMG.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/IMG.c b/IMG.c
index 8ff082f..d1e4183 100644
--- a/IMG.c
+++ b/IMG.c
@@ -87,11 +87,6 @@ int IMG_Init(int flags)
{
int result = 0;
- /* Passing 0 returns the currently initialized loaders */
- if (!flags) {
- return initialized;
- }
-
if (flags & IMG_INIT_JPG) {
if ((initialized & IMG_INIT_JPG) || IMG_InitJPG() == 0) {
result |= IMG_INIT_JPG;
@@ -114,7 +109,7 @@ int IMG_Init(int flags)
}
initialized |= result;
- return result;
+ return initialized;
}
void IMG_Quit()