mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
graphics: Use 0.0 instead of type conversion; gofmt
This commit is contained in:
parent
abc20ca160
commit
406edf28c2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user