IMG_png.c
changeset 100 3feaaa4104f6
parent 98 9f94c4674cc9
child 117 e613cf987897
     1.1 --- a/IMG_png.c	Mon Feb 09 12:40:36 2004 +0000
     1.2 +++ b/IMG_png.c	Sun May 16 18:16:58 2004 +0000
     1.3 @@ -123,7 +123,7 @@
     1.4  	png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING,
     1.5  					  NULL,NULL,NULL);
     1.6  	if (png_ptr == NULL){
     1.7 -		IMG_SetError("Couldn't allocate memory for PNG file");
     1.8 +		IMG_SetError("Couldn't allocate memory for PNG file or incompatible PNG dll");
     1.9  		goto done;
    1.10  	}
    1.11  
    1.12 @@ -249,8 +249,13 @@
    1.13  	/* Read the entire image in one go */
    1.14  	png_read_image(png_ptr, row_pointers);
    1.15  
    1.16 -	/* read rest of file, get additional chunks in info_ptr - REQUIRED */
    1.17 +	/* and we're done!  (png_read_end() can be omitted if no processing of
    1.18 +	 * post-IDAT text/time/etc. is desired)
    1.19 +	 * In some cases it can't read PNG's created by some popular programs (ACDSEE),
    1.20 +	 * we do not want to process comments, so we omit png_read_end
    1.21 +
    1.22  	png_read_end(png_ptr, info_ptr);
    1.23 +	*/
    1.24  
    1.25  	/* Load the palette, if any */
    1.26  	palette = surface->format->palette;