1
0
mirror of https://github.com/golang/go synced 2024-11-25 06:07:58 -07:00

image: make AlphaColor.Set conform to usual signature

R=nigeltao, r
CC=golang-dev
https://golang.org/cl/4471045
This commit is contained in:
Roger Peppe 2011-05-05 10:16:59 -07:00 committed by Rob Pike
parent 0e8032ca49
commit da39008a27

View File

@ -280,7 +280,7 @@ func (p *Alpha) At(x, y int) Color {
return p.Pix[y*p.Stride+x] 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}) { if !p.Rect.Contains(Point{x, y}) {
return return
} }