aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-08-10 10:11:28 -0700
committerRobert Griesemer <gri@golang.org>2010-08-10 10:11:28 -0700
commitb0d0de59a12e48b1875d7b0fcaa9e4bc3fc04d35 (patch)
treec6047edf13911586f07fc7dd6d2ccc816ab6167b
parentd7543094892eaaa4693afcf23c3f0dc370a67900 (diff)
downloadgo-b0d0de59a12e48b1875d7b0fcaa9e4bc3fc04d35.tar.gz
go-b0d0de59a12e48b1875d7b0fcaa9e4bc3fc04d35.zip
fix build: update exp/draw/draw_test.go
R=nigeltao CC=golang-dev https://golang.org/cl/1962041
-rw-r--r--src/pkg/exp/draw/draw_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/exp/draw/draw_test.go b/src/pkg/exp/draw/draw_test.go
index 5b503f8de6..03a4b018ef 100644
--- a/src/pkg/exp/draw/draw_test.go
+++ b/src/pkg/exp/draw/draw_test.go
@@ -137,7 +137,7 @@ loop:
continue
}
// Draw the same combination onto the actual dst using the optimized DrawMask implementation.
- DrawMask(dst, Rect(b.Min.X, b.Min.Y, b.Max.X, b.Max.Y), test.src, ZP, test.mask, ZP, test.op)
+ DrawMask(dst, image.Rect(b.Min.X, b.Min.Y, b.Max.X, b.Max.Y), test.src, image.ZP, test.mask, image.ZP, test.op)
// Check that the resultant pixel at (8, 8) matches what we expect
// (the expected value can be verified by hand).
if !eq(dst.At(8, 8), test.expected) {
@@ -164,7 +164,7 @@ func TestIssue836(t *testing.T) {
b.Set(1, 0, image.RGBAColor{0, 0, 5, 5})
b.Set(0, 1, image.RGBAColor{0, 5, 0, 5})
b.Set(1, 1, image.RGBAColor{5, 0, 0, 5})
- Draw(a, Rect(0, 0, 1, 1), b, Pt(1, 1))
+ Draw(a, image.Rect(0, 0, 1, 1), b, image.Pt(1, 1))
if !eq(image.RGBAColor{5, 0, 0, 5}, a.At(0, 0)) {
t.Errorf("Issue 836: want %v got %v", image.RGBAColor{5, 0, 0, 5}, a.At(0, 0))
}