Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37530178
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: libicns

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: libicns-0.7.1-alt-libpng15.patch
Скачать


diff --git a/libicns/icnsutils/png2icns.c b/libicns/icnsutils/png2icns.c
index 35c200c..6daf364 100644
--- a/libicns/icnsutils/png2icns.c
+++ b/libicns/icnsutils/png2icns.c
@@ -70,7 +70,7 @@ static int read_png(FILE *fp, png_bytepp buffer, int32_t *bpp, int32_t *width, i
 	switch (color_type)
 	{
 		case PNG_COLOR_TYPE_GRAY:
-			png_set_gray_1_2_4_to_8(png_ptr);
+			png_set_expand_gray_1_2_4_to_8(png_ptr);
 
 			if (bit_depth == 16) {
 				png_set_strip_16(png_ptr);
@@ -82,7 +82,7 @@ static int read_png(FILE *fp, png_bytepp buffer, int32_t *bpp, int32_t *width, i
 			break;
 
 		case PNG_COLOR_TYPE_GRAY_ALPHA:
-			png_set_gray_1_2_4_to_8(png_ptr);
+			png_set_expand_gray_1_2_4_to_8(png_ptr);
 
 			if (bit_depth == 16) {
 				png_set_strip_16(png_ptr);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin