forked from old/legacy-imlib2
GIF loader: Enable showing animated images even if truncated
This commit is contained in:
parent
d1d95fb2b1
commit
c44f3a4124
|
@ -156,7 +156,7 @@ _load(ImlibImage * im, int load_data)
|
|||
while (data)
|
||||
{
|
||||
if (DGifGetCodeNext(gif, &data) == GIF_ERROR)
|
||||
goto quit;
|
||||
goto done;
|
||||
DL(" DGifGetCodeNext: size=%d data=%p\n", size, data);
|
||||
}
|
||||
continue;
|
||||
|
@ -258,6 +258,7 @@ _load(ImlibImage * im, int load_data)
|
|||
DL(" Unknown record type(%d)\n", rec);
|
||||
}
|
||||
}
|
||||
done:
|
||||
|
||||
im->has_alpha = transp >= 0;
|
||||
multiframe = false;
|
||||
|
|
Loading…
Reference in New Issue