mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-27 19:50:51 +00:00
fix suport for libpng 1.6
This commit is contained in:
parent
8a9759a3e4
commit
5b5fbe9aad
1 changed files with 2 additions and 1 deletions
|
@ -77,6 +77,7 @@
|
||||||
#define _FILE_OFFSET_BITS 0
|
#define _FILE_OFFSET_BITS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "zlib.h"
|
||||||
#include "png.h"
|
#include "png.h"
|
||||||
#if (PNG_LIBPNG_VER_MAJOR > 1) || (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 4)
|
#if (PNG_LIBPNG_VER_MAJOR > 1) || (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 4)
|
||||||
#define NO_PNG_DEBUG // 1.4.0 move png_debug to pngpriv.h
|
#define NO_PNG_DEBUG // 1.4.0 move png_debug to pngpriv.h
|
||||||
|
@ -688,7 +689,7 @@ static void M_PNGText(png_structp png_ptr, png_infop png_info_ptr, PNG_CONST png
|
||||||
else
|
else
|
||||||
snprintf(locationtxt, 40, "Unknown");
|
snprintf(locationtxt, 40, "Unknown");
|
||||||
|
|
||||||
png_memset(png_infotext,0x00,sizeof (png_infotext));
|
memset(png_infotext,0x00,sizeof (png_infotext));
|
||||||
|
|
||||||
for (i = 0; i < SRB2PNGTXT; i++)
|
for (i = 0; i < SRB2PNGTXT; i++)
|
||||||
png_infotext[i].key = keytxt[i];
|
png_infotext[i].key = keytxt[i];
|
||||||
|
|
Loading…
Reference in a new issue