gentoo-overlay/games-emulation/openmsx/files/openmsx-0.8.1-libpng15.patch

14 lines
469 B
Diff
Raw Normal View History

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) {