forked from old/legacy-imlib2
Revert "loader_gif(): Abort gif parsing if DGifGetLine() fails"
This reverts commit 2c6a3af9b6
.
The fix breaks loading of certain images that at least apparently were
loaded just fine before.
This commit is contained in:
parent
55ddd412c3
commit
534f6c42a3
|
@ -85,10 +85,7 @@ load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity,
|
|||
{
|
||||
for (j = intoffset[i]; j < h; j += intjump[i])
|
||||
{
|
||||
if (DGifGetLine(gif, rows[i], w) == GIF_ERROR)
|
||||
{
|
||||
break;
|
||||
}
|
||||
DGifGetLine(gif, rows[j], w);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -96,10 +93,7 @@ load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity,
|
|||
{
|
||||
for (i = 0; i < h; i++)
|
||||
{
|
||||
if (DGifGetLine(gif, rows[i], w) == GIF_ERROR)
|
||||
{
|
||||
break;
|
||||
}
|
||||
DGifGetLine(gif, rows[i], w);
|
||||
}
|
||||
}
|
||||
done = 1;
|
||||
|
|
Loading…
Reference in New Issue