Skip to content

Commit

Permalink
Update IMG_Init() return value to match documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
n1000 authored and slouken committed Dec 31, 2021
1 parent b428484 commit 840d1d8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions IMG.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -114,7 +109,7 @@ int IMG_Init(int flags)
}
initialized |= result;

return result;
return initialized;
}

void IMG_Quit()
Expand Down

0 comments on commit 840d1d8

Please sign in to comment.