* [gentoo-commits] gentoo-x86 commit in dev-games/crystalspace/files: crystalspace-1.4.0-png15.patch
@ 2011-09-09 9:25 Alfredo Tupone (tupone)
0 siblings, 0 replies; only message in thread
From: Alfredo Tupone (tupone) @ 2011-09-09 9:25 UTC (permalink / raw
To: gentoo-commits
tupone 11/09/09 09:25:36
Added: crystalspace-1.4.0-png15.patch
Log:
Build with libpng-1.5 Bug #381723
(Portage version: 2.1.10.14/cvs/Linux i686)
Revision Changes Path
1.1 dev-games/crystalspace/files/crystalspace-1.4.0-png15.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-games/crystalspace/files/crystalspace-1.4.0-png15.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-games/crystalspace/files/crystalspace-1.4.0-png15.patch?rev=1.1&content-type=text/plain
Index: crystalspace-1.4.0-png15.patch
===================================================================
--- plugins/video/loader/png/pngimage.cpp.old 2011-09-09 10:39:57.218570796 +0200
+++ plugins/video/loader/png/pngimage.cpp 2011-09-09 10:46:45.733522309 +0200
@@ -60,7 +60,7 @@
static void png_write (png_structp png, png_bytep data, png_size_t length)
{
- datastore *ds = (datastore *)png->io_ptr;
+ datastore *ds = (datastore *)png_get_io_ptr(png);
if (ds->pos + (long)length > ds->length)
{
ds->data = (unsigned char*)cs_realloc (ds->data, ds->pos + (long)length);
@@ -173,7 +173,7 @@
}
/* Catch processing errors */
- if (setjmp(png->jmpbuf))
+ if (setjmp(png_jmpbuf(png)))
{
/* If we get here, we had a problem reading the file */
png_destroy_write_struct (&png, &info);
@@ -355,7 +355,7 @@
void ImagePngFile::PngLoader::ImagePngRead (png_structp png, png_bytep data,
png_size_t size)
{
- ImagePngRawData *self = (ImagePngRawData *) png->io_ptr;
+ ImagePngRawData *self = (ImagePngRawData *) png_get_io_ptr(png);
if (self->r_size < size)
png_error (png, "Read Error");
@@ -394,7 +394,7 @@
return false;
}
- if (setjmp (png->jmpbuf))
+ if (setjmp (png_jmpbuf(png)))
{
nomem2:
// If we get here, we had a problem reading the file
@@ -524,7 +524,7 @@
{
size_t rowbytes, exp_rowbytes;
- if (setjmp (png->jmpbuf))
+ if (setjmp (png_jmpbuf(png)))
{
nomem2:
// If we get here, we had a problem reading the file
@@ -560,7 +560,7 @@
png_bytep * const row_pointers = new png_bytep[Height];
- if (setjmp (png->jmpbuf)) // Set a new exception handler
+ if (setjmp (png_jmpbuf(png))) // Set a new exception handler
{
delete [] row_pointers;
goto nomem2;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-09 9:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-09 9:25 [gentoo-commits] gentoo-x86 commit in dev-games/crystalspace/files: crystalspace-1.4.0-png15.patch Alfredo Tupone (tupone)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox