]> Cypherpunks repositories - gostls13.git/commitdiff
image: make AlphaColor.Set conform to usual signature
authorRoger Peppe <rogpeppe@gmail.com>
Thu, 5 May 2011 17:16:59 +0000 (10:16 -0700)
committerRob Pike <r@golang.org>
Thu, 5 May 2011 17:16:59 +0000 (10:16 -0700)
R=nigeltao, r
CC=golang-dev
https://golang.org/cl/4471045

src/pkg/image/image.go

index 222d21adefde3caeeb82744c7122b0f0cfc805a1..4350acc82036f2a5cbd7591926ffe3377a0b512a 100644 (file)
@@ -280,7 +280,7 @@ func (p *Alpha) At(x, y int) Color {
        return p.Pix[y*p.Stride+x]
 }
 
-func (p *Alpha) Set(x, y int, c AlphaColor) {
+func (p *Alpha) Set(x, y int, c Color) {
        if !p.Rect.Contains(Point{x, y}) {
                return
        }