1 Star 0 Fork 4

zhangju1/DevIL

forked from src-openEuler/DevIL 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
DevIL-1.7.8-libpng15.patch 977 Bytes
一键复制 编辑 原始数据 按行查看 历史
seki099 提交于 2020-02-29 15:46 +08:00 . package init
--- devil-1.7.8/src-IL/src/il_png.c.orig 2011-11-05 18:21:39.980007624 -0400
+++ devil-1.7.8/src-IL/src/il_png.c 2011-11-05 18:46:18.644000033 -0400
@@ -278,7 +278,11 @@
// Expand low-bit-depth grayscale images to 8 bits
if (png_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
+#if PNG_LIBPNG_VER > 10400
+ png_set_expand_gray_1_2_4_to_8(png_ptr);
+#else
png_set_gray_1_2_4_to_8(png_ptr);
+#endif
}
// Expand RGB images with transparency to full alpha channels
--- devil-1.7.8/src-IL/src/il_icon.c.orig 2011-11-05 18:21:27.560000432 -0400
+++ devil-1.7.8/src-IL/src/il_icon.c 2011-11-05 18:46:44.626000535 -0400
@@ -525,7 +525,11 @@
// Expand low-bit-depth grayscale images to 8 bits
if (ico_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
+#if PNG_LIBPNG_VER > 10400
+ png_set_expand_gray_1_2_4_to_8(ico_png_ptr);
+#else
png_set_gray_1_2_4_to_8(ico_png_ptr);
+#endif
}
// Expand RGB images with transparency to full alpha channels
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangju1/DevIL.git
git@gitee.com:zhangju1/DevIL.git
zhangju1
DevIL
DevIL
master

搜索帮助