<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- src/kernel/qpngio.cpp	2008-01-15 14:09:13.000000000 -0500
+++ src/kernel/qpngio.cpp	2010-05-13 01:22:17.295436061 -0400
@@ -162,7 +162,11 @@
 		image.setColor( i, qRgba(c,c,c,0xff) );
 	    }
 	    if ( png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) ) {
+#if PNG_LIBPNG_VER &lt; 10400
 		const int g = info_ptr-&gt;trans_values.gray;
+#else
+		const int g = info_ptr-&gt;trans_color.gray;
+#endif
 		if (g &lt; ncols) {
 		    image.setAlphaBuffer(TRUE);
 		    image.setColor(g, image.color(g) &amp; RGB_MASK);
@@ -190,7 +194,11 @@
 		    info_ptr-&gt;palette[i].red,
 		    info_ptr-&gt;palette[i].green,
 		    info_ptr-&gt;palette[i].blue,
+#if PNG_LIBPNG_VER &lt; 10400
 		    info_ptr-&gt;trans[i]
+#else
+		    info_ptr-&gt;trans_alpha[i]
+#endif
 		    )
 		);
 		i++;
</pre></body></html>