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:
parent
0e8032ca49
commit
da39008a27
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user