Debug
This commit is contained in:
natural-law 2010-09-13 07:00:08 +00:00
parent 385f0c1603
commit 0c2849eea3
1 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ bool UIImage::loadPng(const char* strFileName)
png_set_sig_bytes(png_ptr, 8); png_set_sig_bytes(png_ptr, 8);
// read the data of the file // read the data of the file
png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_EXPAND, 0); png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_EXPAND | PNG_TRANSFORM_GRAY_TO_RGB, 0);
png_get_IHDR(png_ptr, info_ptr, &width, &height, &bitDepth, &colorType, png_get_IHDR(png_ptr, info_ptr, &width, &height, &bitDepth, &colorType,
&interlaceType, NULL, NULL); &interlaceType, NULL, NULL);
@ -454,7 +454,7 @@ bool UIImage::loadPngFromStream(unsigned char *data, int nLength)
png_set_read_fn(png_ptr, &imageSource, pngReadCallback); png_set_read_fn(png_ptr, &imageSource, pngReadCallback);
// read the data of the file // read the data of the file
png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_EXPAND, 0); png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_EXPAND | PNG_TRANSFORM_GRAY_TO_RGB, 0);
png_get_IHDR(png_ptr, info_ptr, &width, &height, &bitDepth, &colorType, png_get_IHDR(png_ptr, info_ptr, &width, &height, &bitDepth, &colorType,
&interlaceType, NULL, NULL); &interlaceType, NULL, NULL);