Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 319487
Collapse All | Expand All

(-)qt-x11-free-3.3.8b-orig//src/kernel/qpngio.cpp (+8 lines)
Lines 162-168 Link Here
162
		image.setColor( i, qRgba(c,c,c,0xff) );
162
		image.setColor( i, qRgba(c,c,c,0xff) );
163
	    }
163
	    }
164
	    if ( png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) ) {
164
	    if ( png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) ) {
165
#if PNG_LIBPNG_VER < 10400
165
		const int g = info_ptr->trans_values.gray;
166
		const int g = info_ptr->trans_values.gray;
167
#else
168
		const int g = info_ptr->trans_color.gray;
169
#endif
166
		if (g < ncols) {
170
		if (g < ncols) {
167
		    image.setAlphaBuffer(TRUE);
171
		    image.setAlphaBuffer(TRUE);
168
		    image.setColor(g, image.color(g) & RGB_MASK);
172
		    image.setColor(g, image.color(g) & RGB_MASK);
Lines 190-196 Link Here
190
		    info_ptr->palette[i].red,
194
		    info_ptr->palette[i].red,
191
		    info_ptr->palette[i].green,
195
		    info_ptr->palette[i].green,
192
		    info_ptr->palette[i].blue,
196
		    info_ptr->palette[i].blue,
197
#if PNG_LIBPNG_VER < 10400
193
		    info_ptr->trans[i]
198
		    info_ptr->trans[i]
199
#else
200
		    info_ptr->trans_alpha[i]
201
#endif
194
		    )
202
		    )
195
		);
203
		);
196
		i++;
204
		i++;

Return to bug 319487