1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- fix to support interlaced gif

PR:		179537
Submitted by:	Sergey Kandaurov
Obtained from:	libgd repo
This commit is contained in:
Dirk Meyer 2013-06-15 11:41:25 +00:00
parent 308d88a41c
commit 143f99034e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320987
2 changed files with 25 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= gd
PORTVERSION= 2.0.35
PORTREVISION?= 8
PORTREVISION?= 9
PORTEPOCH= 1
CATEGORIES+= graphics
MASTER_SITES= http://www.libgd.org/releases/ \

View File

@ -0,0 +1,24 @@
--- gd_gif_out.c~ 2007-01-04 15:44:31.000000000 +0300
+++ gd_gif_out.c 2013-06-13 17:11:11.000000000 +0400
@@ -586,9 +586,9 @@
int InitCodeSize;
int i;
GifCtx ctx;
+ memset(&ctx, 0, sizeof(ctx));
ctx.Interlace = GInterlace;
ctx.in_count = 1;
- memset(&ctx, 0, sizeof(ctx));
ColorMapSize = 1 << BitsPerPixel;
RWidth = ctx.Width = GWidth;
@@ -735,9 +735,9 @@
int InitCodeSize;
int i;
GifCtx ctx;
+ memset(&ctx, 0, sizeof(ctx));
ctx.Interlace = GInterlace;
ctx.in_count = 1;
- memset(&ctx, 0, sizeof(ctx));
ColorMapSize = 1 << BitsPerPixel;
if (LeftOfs < 0) LeftOfs = 0;