- Timestamp:
- 01/18/10 15:27:20 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/png/ReaderWriterPNG.cpp
r10763 r10963 179 179 180 180 fin.read((char*)header,8); 181 if (fin.gcount() == 8 && png_ check_sig(header, 8))181 if (fin.gcount() == 8 && png_sig_cmp(header, 0, 8) == 0) 182 182 png_set_read_fn(png,&fin,png_read_istream); //Use custom read function that will get data from istream 183 183 else … … 230 230 png_set_palette_to_rgb(png); 231 231 if (color == PNG_COLOR_TYPE_GRAY && depth < 8) 232 png_set_ gray_1_2_4_to_8(png);232 png_set_expand_gray_1_2_4_to_8(png); 233 233 if (png_get_valid(png, info, PNG_INFO_tRNS)) 234 234 png_set_tRNS_to_alpha(png);
