png_const_colorp isn't used in SDL_image-1.2.x. SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Tue, 16 Oct 2018 10:21:50 +0300
branchSDL-1.2
changeset 605e7abf44fc35c
parent 604 93d1be43b70a
child 606 4872fdc71670
png_const_colorp isn't used in SDL_image-1.2.x.
IMG_png.c
     1.1 --- a/IMG_png.c	Sun Oct 14 17:05:20 2018 +0300
     1.2 +++ b/IMG_png.c	Tue Oct 16 10:21:50 2018 +0300
     1.3 @@ -75,7 +75,6 @@
     1.4  #if (PNG_LIBPNG_VER_MINOR < 5)
     1.5  #define LIBPNG_VERSION_12
     1.6  typedef png_bytep png_const_bytep;
     1.7 -typedef png_color *png_const_colorp;
     1.8  #endif
     1.9  #if (PNG_LIBPNG_VER_MINOR < 6)
    1.10  typedef png_structp png_const_structrp;
    1.11 @@ -542,7 +541,7 @@
    1.12  		    palette->colors[i].b = (Uint8)i;
    1.13  		}
    1.14  	    } else if (png_num_palette > 0 ) {
    1.15 -		palette->ncolors = png_num_palette; 
    1.16 +		palette->ncolors = png_num_palette;
    1.17  		for( i=0; i<png_num_palette; ++i ) {
    1.18  		    palette->colors[i].b = png_palette[i].blue;
    1.19  		    palette->colors[i].g = png_palette[i].green;