graphics: Use 0.0 instead of type conversion; gofmt

This commit is contained in:
Hajime Hoshi 2018-01-14 16:05:18 +09:00
parent abc20ca160
commit 406edf28c2

View File

@ -70,7 +70,7 @@ func vertices(sx0, sy0, sx1, sy1 int, width, height int, geo *affine.GeoM) []flo
g.Concat(geo) g.Concat(geo)
geo = &g geo = &g
} }
x0, y0 := float64(0), float64(0) x0, y0 := 0.0, 0.0
x1, y1 := float64(sx1-sx0), float64(sy1-sy0) x1, y1 := float64(sx1-sx0), float64(sy1-sy0)
// it really feels like we should be able to cache this computation // it really feels like we should be able to cache this computation