1
0
mirror of https://github.com/golang/go synced 2024-11-25 06:07:58 -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:
Nigel Tao 2010-01-15 11:58:24 +11:00
parent 10a5eb0a29
commit 8cf627ad57

View File

@ -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