diff -up irrlicht-1.5/source/Irrlicht/CImageLoaderPNG.cpp.pngfix irrlicht-1.5/source/Irrlicht/CImageLoaderPNG.cpp
--- irrlicht-1.5/source/Irrlicht/CImageLoaderPNG.cpp.pngfix 2009-01-10 12:46:59.000000000 -0500
+++ irrlicht-1.5/source/Irrlicht/CImageLoaderPNG.cpp 2009-01-10 12:52:19.000000000 -0500
@@ -184,9 +184,14 @@ IImage* CImageLoaderPng::loadImage(io::I
// Update the changes
png_read_update_info(png_ptr, info_ptr);
- png_get_IHDR(png_ptr, info_ptr,
- (png_uint_32*)&Width, (png_uint_32*)&Height,
- &BitDepth, &ColorType, NULL, NULL, NULL);
+ {
+ png_uint_32 w,h;
+ png_get_IHDR(png_ptr, info_ptr,
+ &w, &h,
+ &BitDepth, &ColorType, NULL, NULL, NULL);
+ Width=w;
+ Height=h;
+ }
// Convert RGBA to BGRA
if (ColorType==PNG_COLOR_TYPE_RGB_ALPHA)
@@ -199,9 +204,14 @@ IImage* CImageLoaderPng::loadImage(io::I
}
// Update the changes
- png_get_IHDR(png_ptr, info_ptr,
- (png_uint_32*)&Width, (png_uint_32*)&Height,
- &BitDepth, &ColorType, NULL, NULL, NULL);
+ {
+ png_uint_32 w,h;
+ png_get_IHDR(png_ptr, info_ptr,
+ &w, &h,
+ &BitDepth, &ColorType, NULL, NULL, NULL);
+ Width=w;
+ Height=h;
+ }
// Create the image structure to be filled by png data
if (ColorType==PNG_COLOR_TYPE_RGB_ALPHA)