1 === modified file 'NuxImage/NPng.cpp'
2 --- NuxImage/NPng.cpp 2010-12-06 06:09:44 +0000
3 +++ NuxImage/NPng.cpp 2010-12-09 20:41:42 +0000
5 png_read_info (png_ptr, info_ptr);
7 // get width, height, bit-depth and color-type
8 - unsigned long width, height;
9 + png_uint_32 width, height;
10 png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 0, 0, 0);
12 // expand images of all color-type and bit-depth to 3x8 bit RGB images
14 png_read_info (png_ptr, info_ptr);
16 // get width, height, bit-depth and color-type
19 png_get_IHDR (png_ptr, info_ptr, &w, &h, &bit_depth, &color_type, 0, 0, 0);
21 // expand images of all color-type and bit-depth to 3x8 bit RGB images