mirror of
https://github.com/golang/go
synced 2024-11-13 19:00:25 -07:00
Fix s/Width/Height/ typo in draw.go.
Fixes #531. R=r CC=golang-dev https://golang.org/cl/189078
This commit is contained in:
parent
10a5eb0a29
commit
8cf627ad57
@ -32,8 +32,8 @@ func Draw(dst Image, r Rectangle, src, mask image.Image, pt Point) {
|
||||
if dx > mask.Width() {
|
||||
dx = mask.Width()
|
||||
}
|
||||
if dy > mask.Width() {
|
||||
dy = mask.Width()
|
||||
if dy > mask.Height() {
|
||||
dy = mask.Height()
|
||||
}
|
||||
}
|
||||
dx -= pt.X
|
||||
|
Loading…
Reference in New Issue
Block a user