Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-release-src > by-pkgid > 9c3613f5e578590c5f840018b6b4c1df > files > 1

mtpaint-3.40-9.mga6.src.rpm

--- mtpaint-3.40/src/png.c.orig	2016-01-07 17:09:55.395456913 -0500
+++ mtpaint-3.40/src/png.c	2016-01-07 17:12:55.696452697 -0500
@@ -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));
@@ -1608,7 +1608,7 @@ static int load_gif_frames(char *file_na
 	}
 	res = 1;
 fail:	mem_free_chanlist(w_set.img);
-	DGifCloseFile(giffy);
+	DGifCloseFile(giffy, NULL);
 	return (res);
 }
 
@@ -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);
@@ -1659,7 +1659,7 @@ static int load_gif(char *file_name, ls_
 		}
 	}
 	res = 1;
-fail:	DGifCloseFile(giffy);
+ fail:	DGifCloseFile(giffy, NULL);
 	return (res);
 }
 
@@ -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++)
@@ -1725,14 +1725,14 @@ static int save_gif(char *file_name, ls_
 	if (!settings->silent) progress_end();
 	msg = 0;
 
-fail:	EGifCloseFile(giffy);
+fail:	EGifCloseFile(giffy, NULL);
 #ifndef WIN32
 	/* giflib creates files with 0600 permissions, which is nasty - WJ */
 	mode = umask(0022);
 	umask(mode);
 	chmod(file_name, 0666 & ~mode);
 #endif
-fail0:	FreeMapObject(gif_map);
+fail0:	GifFreeMapObject(gif_map);
 
 	return (msg);
 }