mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 15:47:15 +08:00
21 lines
576 B
Diff
21 lines
576 B
Diff
--- src/pngcodec.c.orig 2010-01-16 23:47:17.000000000 +0100
|
|
+++ src/pngcodec.c 2010-01-16 23:49:49.000000000 +0100
|
|
@@ -352,7 +352,7 @@
|
|
info_ptr->palette[i].blue,
|
|
info_ptr->palette[i].green,
|
|
info_ptr->palette[i].red,
|
|
- info_ptr->trans[i]); /* alpha */
|
|
+ info_ptr->trans_alpha[i]); /* alpha */
|
|
}
|
|
}
|
|
|
|
@@ -418,7 +418,7 @@
|
|
}
|
|
|
|
if ((color_type == PNG_COLOR_TYPE_GRAY) && (bit_depth < 8)) {
|
|
- png_set_gray_1_2_4_to_8(png_ptr);
|
|
+ png_set_expand_gray_1_2_4_to_8(png_ptr);
|
|
}
|
|
|
|
if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) {
|