From: Nigel Tao Date: Tue, 7 Sep 2010 09:16:59 +0000 (+1000) Subject: image: change a ColorImage's minimum point from (0, 0) to (-1e9, -1e9). X-Git-Tag: weekly.2010-09-15~108 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=832ed355fefc3c80bf75fdf0aaa39a1574a95854;p=gostls13.git image: change a ColorImage's minimum point from (0, 0) to (-1e9, -1e9). R=r CC=golang-dev https://golang.org/cl/2138045 --- diff --git a/src/pkg/image/names.go b/src/pkg/image/names.go index 52bfa41cd2..11f65259c9 100644 --- a/src/pkg/image/names.go +++ b/src/pkg/image/names.go @@ -29,7 +29,7 @@ func (c ColorImage) ColorModel() ColorModel { return ColorModelFunc(func(Color) Color { return c.C }) } -func (c ColorImage) Bounds() Rectangle { return Rectangle{ZP, Point{1e9, 1e9}} } +func (c ColorImage) Bounds() Rectangle { return Rectangle{Point{-1e9, -1e9}, Point{1e9, 1e9}} } func (c ColorImage) At(x, y int) Color { return c.C }