1
0
mirror of https://github.com/golang/go synced 2024-11-19 14:54:43 -07:00

gif: fix build

Had bit test wrong on transparency; no excuses.

R=nigeltao
CC=golang-dev
https://golang.org/cl/4526044
This commit is contained in:
Rob Pike 2011-05-09 06:38:04 -07:00
parent a54dca8357
commit 45ea58746b

View File

@ -306,7 +306,7 @@ func (d *decoder) readGraphicControl() os.Error {
}
d.flags = d.tmp[1]
d.delayTime = int(d.tmp[2]) | int(d.tmp[3])<<8
if d.flags&gcTransparentColorSet == 0 {
if d.flags&gcTransparentColorSet != 0 {
d.transparentIndex = d.tmp[4]
d.setTransparency(d.globalColorMap)
}