http://bugs.gentoo.org/319901 --- ksplash/ksplashx/qpngio.cpp +++ ksplash/ksplashx/qpngio.cpp @@ -151,7 +151,11 @@ image.setColor( i, qRgba(c,c,c,0xff) ); } if ( png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) ) { + #if PNG_LIBPNG_VER < 10400 const int g = info_ptr->trans_values.gray; + #else + const int g = info_ptr->trans_color.gray; + #endif if (g < ncols) { image.setAlphaBuffer(true); image.setColor(g, image.color(g) & RGB_MASK); @@ -179,7 +183,11 @@ info_ptr->palette[i].red, info_ptr->palette[i].green, info_ptr->palette[i].blue, + #if PNG_LIBPNG_VER < 10400 info_ptr->trans[i] + #else + info_ptr->trans_alpha[i] + #endif ) ); i++;