mirror of
https://github.com/golang/go
synced 2024-11-21 19:54:41 -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:
parent
0e8032ca49
commit
da39008a27
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user