Closed sonicth closed 3 years ago
this has been addressed, thus closing. and thanks still!
`commit 495af34788dcbae69f53a77d0bd70848b08b2de3 Author: nalin.x.linux nalin.x.linux@gmail.com Date: Wed Aug 22 22:54:20 2018 +0530
Since info_ptr is no longer directly accessible, set image header information in info_ptr using png_set_IHDR()
diff --git a/src/t4k_loaders.c b/src/t4k_loaders.c index ec66505..f69e5e5 100644 --- a/src/t4k_loaders.c +++ b/src/t4k_loaders.c @@ -1041,12 +1041,10 @@ static int do_png_save(FILE fi, const char const fname, SDL_Surface * surf) { png_init_io(png_ptr, fi);
png_set_sRGB_gAMA_and_cHRM(png_ptr, info_ptr,
PNG_sRGB_INTENT_PERCEPTUAL);
`
_infoptr is no longer defined globally. The following may fix the compile error occuring in _src/t4kloaders.c: