- MFB #38214, gif interlace never worked

This commit is contained in:
Pierre Joye 2006-07-26 10:03:41 +00:00
parent b9915a9264
commit dfb431b7c5

View file

@ -264,10 +264,12 @@ GIFEncode(gdIOCtxPtr fp, int GWidth, int GHeight, int GInterlace, int Background
int ColorMapSize; int ColorMapSize;
int InitCodeSize; int InitCodeSize;
int i; int i;
GifCtx ctx; GifCtx ctx;
memset(&ctx, 0, sizeof(ctx));
ctx.Interlace = GInterlace; ctx.Interlace = GInterlace;
ctx.in_count = 1; ctx.in_count = 1;
memset(&ctx, 0, sizeof(ctx));
ColorMapSize = 1 << BitsPerPixel; ColorMapSize = 1 << BitsPerPixel;
RWidth = ctx.Width = GWidth; RWidth = ctx.Width = GWidth;