diff options
-rw-r--r-- | astro/celestia/files/patch-src_celengine_image.cpp | 11 | ||||
-rw-r--r-- | astro/sunclock/files/patch-readpng.c | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/astro/celestia/files/patch-src_celengine_image.cpp b/astro/celestia/files/patch-src_celengine_image.cpp new file mode 100644 index 000000000000..fea24f41441e --- /dev/null +++ b/astro/celestia/files/patch-src_celengine_image.cpp @@ -0,0 +1,11 @@ +--- src/celengine/image.cpp.orig 2009-06-22 17:44:08.000000000 +0200 ++++ src/celengine/image.cpp 2010-03-29 14:11:02.000000000 +0200 +@@ -737,7 +737,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)) diff --git a/astro/sunclock/files/patch-readpng.c b/astro/sunclock/files/patch-readpng.c new file mode 100644 index 000000000000..1481473bc696 --- /dev/null +++ b/astro/sunclock/files/patch-readpng.c @@ -0,0 +1,11 @@ +--- readpng.c.orig 2005-10-23 21:36:29.000000000 +0200 ++++ readpng.c 2010-03-29 14:14:22.000000000 +0200 +@@ -57,7 +57,7 @@ + fread(header, 1, 8, fp); + fclose(fp); + +- return png_check_sig(header, 8); ++ return !png_sig_cmp(header, 0, 8); + } + + static void |