Reset the GIF's LZW decoder if necessary

This commit is contained in:
Nigel Tao committed 2018-05-10 14:42:10 +10:00
1 parent 614ac408ae
commit 8586cf8e3d
7 files changed
+25 -6

No files matched your search

+6
View File
@@ -333,6 +333,12 @@ func (g *gen) writeExprOther(b *buffer, n *a.Expr, rp replacementPolicy, pp pare
b.printf(")")
return nil
}
if isThatMethod(g.tm, n, t.IDReset, 0) {
// TODO: don't hard-code f_lzw.
b.writes("wuffs_gif__lzw_decoder__initialize(" +
"&self->private_impl.f_lzw, WUFFS_VERSION, 0)")
return nil
}
// TODO.
case t.IDOpenBracket: