Fixed strange gamma problem with PNG files in Internet Explorer

This commit is contained in:
pagefault
2001-11-23 19:43:51 +00:00
parent 8af35ce0db
commit 7f8c840f68

View File

@@ -83,9 +83,6 @@ int Png_Dump(const char * filename, unsigned short width, unsigned short height,
PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT); PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
info_ptr->color_type=PNG_COLOR_TYPE_RGB_ALPHA; info_ptr->color_type=PNG_COLOR_TYPE_RGB_ALPHA;
/*Set palette and gamma (assume 1.0 gamma)*/
// png_set_PLTE(png_ptr, info_ptr, &fake_pal, 1);
png_set_gAMA(png_ptr, info_ptr, ZPNG_GAMMA);
/*Allocate an array of scanline pointers*/ /*Allocate an array of scanline pointers*/
row_pointers=(png_bytep*)malloc(height*sizeof(png_bytep)); row_pointers=(png_bytep*)malloc(height*sizeof(png_bytep));