]> Cypherpunks repositories - gostls13.git/commitdiff
gif: fix build
authorRob Pike <r@golang.org>
Mon, 9 May 2011 13:38:04 +0000 (06:38 -0700)
committerRob Pike <r@golang.org>
Mon, 9 May 2011 13:38:04 +0000 (06:38 -0700)
Had bit test wrong on transparency; no excuses.

R=nigeltao
CC=golang-dev
https://golang.org/cl/4526044

src/pkg/image/gif/reader.go

index 6548090dd98ff523ed79e5cce3fef5b811f5d33f..d37f52689eec75325ddb56894d84518ca08e9f07 100644 (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)
        }