4 png_ptr = png_create_write_struct( PNG_LIBPNG_VER_STRING, NULL, NULL, NULL );
6 if( (info_ptr = png_create_info_struct(png_ptr)) != NULL )
7 - if( setjmp(png_ptr->jmpbuf) )
8 + if( setjmp(png_jmpbuf(png_ptr)) )
10 png_destroy_info_struct(png_ptr, (png_infopp) &info_ptr);
15 * the normal method of doing things with libpng). REQUIRED unless you
16 * set up your own error handlers in the png_create_read_struct() earlier.
18 - if ( !setjmp (png_ptr->jmpbuf))
19 + if ( !setjmp (png_jmpbuf(png_ptr)))
21 ASFlagType rgb_flags = ASStorage_RLEDiffCompress|ASStorage_32Bit ;
25 static void asim_png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
27 - ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_ptr->io_ptr;
28 + ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_get_io_ptr(png_ptr);
29 memcpy(data, buf->buffer, length);
30 buf->buffer += length;