pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
patches to mtpaint
Hello, I was building some pkgsrc modules, and
notice that module mtpaint does not build because
of chaning in the giflib, so some patches is needed
I am sending you the patches I done to build and run mtpaint application
Hope it helps
$NetBSD$
--- src/png.c.orig 2011-10-27 20:56:24.000000000 +0000
+++ src/png.c
@@ -1510,7 +1510,7 @@ static int load_gif_frames(char *file_na
int res, val, disposal, bpp, cmask, lastzero = FALSE;
- if (!(giffy = DGifOpenFileName(file_name))) return (-1);
+ if (!(giffy = DGifOpenFileName(file_name,NULL))) return (-1);
/* Init state structure */
memset(&stat, 0, sizeof(stat));
@@ -1621,7 +1621,7 @@ static int load_gif(char *file_name, ls_
int delay = settings->gif_delay, trans = -1;//, disposal = 0;
- if (!(giffy = DGifOpenFileName(file_name))) return (-1);
+ if (!(giffy = DGifOpenFileName(file_name,NULL))) return (-1);
/* Get global palette */
settings->colors = convert_gif_palette(settings->pal, giffy->SColorMap);
@@ -1682,10 +1682,10 @@ static int save_gif(char *file_name, ls_
nc |= nc >> 1; nc |= nc >> 2; nc |= nc >> 4;
nc += !nc + 1; // No less than 2 colors
- gif_map = MakeMapObject(nc, NULL);
+ gif_map = GifMakeMapObject(nc, NULL);
if (!gif_map) return -1;
- giffy = EGifOpenFileName(file_name, FALSE);
+ giffy = EGifOpenFileName(file_name, FALSE,NULL);
if (!giffy) goto fail0;
for (i = 0; i < settings->colors; i++)
@@ -1732,7 +1732,7 @@ fail: EGifCloseFile(giffy);
umask(mode);
chmod(file_name, 0666 & ~mode);
#endif
-fail0: FreeMapObject(gif_map);
+fail0: GifFreeMapObject(gif_map);
return (msg);
}
Home |
Main Index |
Thread Index |
Old Index