public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-chemistry/molmol/files: libpng15.patch
@ 2011-09-14 21:25 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2011-09-14 21:25 UTC (permalink / raw
  To: gentoo-commits

ssuominen    11/09/14 21:25:05

  Added:                libpng15.patch
  Log:
  Fix building with libpng15 wrt #378341 by Diego Elio Pettenò
  
  (Portage version: 2.2.0_alpha55/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sci-chemistry/molmol/files/libpng15.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/molmol/files/libpng15.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/molmol/files/libpng15.patch?rev=1.1&content-type=text/plain

Index: libpng15.patch
===================================================================
--- src/motogl/MotOGLDump.c
+++ src/motogl/MotOGLDump.c
@@ -248,7 +248,7 @@
 pngErrHand(png_structp pngStrucP, char *errMsg)
 {
   IORaiseError(errMsg);
-  longjmp(pngStrucP->jmpbuf, 1);
+  longjmp(png_jmpbuf(pngStrucP), 1);
 }
 #endif
 
@@ -357,7 +357,7 @@
       return IO_RES_ERR;
     }
 
-    if (setjmp(pngStrucP->jmpbuf)) {
+    if (setjmp(png_jmpbuf(pngStrucP))) {
       if (cBuf != NULL)
 	free(cBuf);
       if (fBuf != NULL)
@@ -368,10 +368,7 @@
 
     png_init_io(pngStrucP, ImgFileP);
 
-    pngInfoP->width = imgW;
-    pngInfoP->height = imgH;
-    pngInfoP->bit_depth = 8;
-    pngInfoP->color_type = PNG_COLOR_TYPE_RGB;
+    png_set_IHDR(pngStrucP, pngInfoP, imgW, imgH, 8, PNG_COLOR_TYPE_RGB, 0, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
     png_write_info(pngStrucP, pngInfoP);
   }
 #endif






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-14 21:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-14 21:25 [gentoo-commits] gentoo-x86 commit in sci-chemistry/molmol/files: libpng15.patch Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox