Author: megabajt                     Date: Thu Feb 11 17:00:10 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fixes build with libpng 1.4

---- Files affected:
packages/stellarium:
   stellarium-libpng.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/stellarium/stellarium-libpng.patch
diff -u /dev/null packages/stellarium/stellarium-libpng.patch:1.1
--- /dev/null   Thu Feb 11 18:00:10 2010
+++ packages/stellarium/stellarium-libpng.patch Thu Feb 11 18:00:04 2010
@@ -0,0 +1,21 @@
+diff -urN stellarium-0.10.2/src/core/StelTextureMgr.cpp 
stellarium-0.10.2.new/src/core/StelTextureMgr.cpp
+--- stellarium-0.10.2/src/core/StelTextureMgr.cpp      2009-03-09 
12:28:33.000000000 +0100
++++ stellarium-0.10.2.new/src/core/StelTextureMgr.cpp  2010-02-11 
17:55:01.937089824 +0100
+@@ -513,7 +513,7 @@
+       fread (magic, 1, sizeof (magic), fp);
+ 
+       /* check for valid magic number */
+-      if (!png_check_sig (magic, sizeof (magic)))
++      if (png_sig_cmp (magic, 0, sizeof (magic)))
+       {
+               qWarning() << "error: \"" << filename << "\" is not a valid PNG 
image!";
+               fclose (fp);
+@@ -576,7 +576,7 @@
+       /* convert 1-2-4 bits grayscale images to 8 bits
+          grayscale. */
+       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))
+               png_set_tRNS_to_alpha (png_ptr);
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to