Commit 45ea5874 authored by Rob Pike's avatar Rob Pike

gif: fix build

Had bit test wrong on transparency; no excuses.

R=nigeltao
CC=golang-dev
https://golang.org/cl/4526044
parent a54dca83
...@@ -306,7 +306,7 @@ func (d *decoder) readGraphicControl() os.Error { ...@@ -306,7 +306,7 @@ func (d *decoder) readGraphicControl() os.Error {
} }
d.flags = d.tmp[1] d.flags = d.tmp[1]
d.delayTime = int(d.tmp[2]) | int(d.tmp[3])<<8 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.transparentIndex = d.tmp[4]
d.setTransparency(d.globalColorMap) d.setTransparency(d.globalColorMap)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment