mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- MFB #38214, gif interlace never worked
This commit is contained in:
parent
b9915a9264
commit
dfb431b7c5
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue