diff --git a/projection.go b/projection.go index fe1bb0b..c90d7d1 100644 --- a/projection.go +++ b/projection.go @@ -80,7 +80,7 @@ func (p *projection) visibleTiles(action func(int, int, geom.Point)) { topLeft := p.screenToMap(visible.Min.X, visible.Min.Y) topRight := p.screenToMap(visible.Max.X, visible.Min.Y) bottomLeft := p.screenToMap(visible.Min.X, visible.Max.Y) - bottomRight := p.screenToMap(visible.Max.Y, visible.Max.Y) + bottomRight := p.screenToMap(visible.Max.X, visible.Max.Y) minY, maxY := int(Floor32(topRight.Y)), int(Ceil32(bottomLeft.Y)) minX, maxX := int(Floor32(topLeft.X)), int(Ceil32(bottomRight.X)) for y := minY; y <= maxY; y++ {