]> Cypherpunks repositories - gostls13.git/commitdiff
image: change a ColorImage's minimum point from (0, 0) to (-1e9, -1e9).
authorNigel Tao <nigeltao@golang.org>
Tue, 7 Sep 2010 09:16:59 +0000 (19:16 +1000)
committerNigel Tao <nigeltao@golang.org>
Tue, 7 Sep 2010 09:16:59 +0000 (19:16 +1000)
R=r
CC=golang-dev
https://golang.org/cl/2138045

src/pkg/image/names.go

index 52bfa41cd2330df7d82b47db130866c2166a4b8b..11f65259c9cccee958d6c394be682c3e0e0e6a1e 100644 (file)
@@ -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 }