http://openmsx.svn.sourceforge.net/viewvc/openmsx/openmsx/trunk/src/video/PNG.cc?r1=11609&r2=12214 --- src/video/PNG.cc +++ src/video/PNG.cc @@ -167,7 +167,7 @@ "Attempted to create a surface with excessive height: " << height << ", max " << MAX_SIZE); } - int bpp = png.info->channels * 8; + int bpp = png_get_channels(png.ptr, png.info) * 8; assert(bpp == 24 || bpp == 32); Uint32 redMask, grnMask, bluMask, alpMask; if (OPENMSX_BIGENDIAN) {