Skip to content

Commit

Permalink
Merged Eric's changes to support ImageIO on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 28, 2011
2 parents 16e8493 + 86efa56 commit b3ede70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion IMG.c
Expand Up @@ -90,7 +90,7 @@ int IMG_Init(int flags)
}
initialized |= result;

return (result);
return (initialized);
}

void IMG_Quit()
Expand Down
5 changes: 4 additions & 1 deletion IMG_png.c
Expand Up @@ -72,7 +72,7 @@
#include <png.h>

/* Check for the older version of libpng */
#if (PNG_LIBPNG_VER_MAJOR == 1) && (PNG_LIBPNG_VER_MINOR)
#if (PNG_LIBPNG_VER_MAJOR == 1) && (PNG_LIBPNG_VER_MINOR < 4)
#define LIBPNG_VERSION_12
#endif

Expand Down Expand Up @@ -282,6 +282,9 @@ int IMG_InitPNG()
lib.png_set_read_fn = png_set_read_fn;
lib.png_set_strip_16 = png_set_strip_16;
lib.png_sig_cmp = png_sig_cmp;
#ifndef LIBPNG_VERSION_12
lib.png_set_longjmp_fn = png_set_longjmp_fn;
#endif
}
++lib.loaded;

Expand Down
2 changes: 1 addition & 1 deletion Makefile.am
Expand Up @@ -26,7 +26,7 @@ EXTRA_DIST = \
Android.mk \
CHANGES \
version.rc \
VisualC.zip \
VisualC \
VisualCE.zip \
Xcode.tar.gz \
Xcode_iPhone.tar.gz \
Expand Down

0 comments on commit b3ede70

Please sign in to comment.