Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 140121 | Differences between
and this patch

Collapse All | Expand All

(-)a/renderer/r_image.c (+4 lines)
Lines 1127-1133 LoadPNG(char *filename, byte ** pic, int *width, int *height) Link Here
1127
	if (my_png->ColorType == PNG_COLOR_TYPE_PALETTE)
1127
	if (my_png->ColorType == PNG_COLOR_TYPE_PALETTE)
1128
		png_set_palette_to_rgb(png);
1128
		png_set_palette_to_rgb(png);
1129
	if (my_png->ColorType == PNG_COLOR_TYPE_GRAY && my_png->BitDepth < 8)
1129
	if (my_png->ColorType == PNG_COLOR_TYPE_GRAY && my_png->BitDepth < 8)
1130
		#if PNG_LIBPNG_VER >= 10209
1131
		png_set_expand_gray_1_2_4_to_8(png);
1132
		#else
1130
		png_set_gray_1_2_4_to_8(png);
1133
		png_set_gray_1_2_4_to_8(png);
1134
		#endif
1131
1135
1132
	/* Add alpha channel if present */
1136
	/* Add alpha channel if present */
1133
	if (png_get_valid(png, pnginfo, PNG_INFO_tRNS))
1137
	if (png_get_valid(png, pnginfo, PNG_INFO_tRNS))

Return to bug 140121