examples/lines: remove duplicated code (#2713)

This commit is contained in:
Mathieu Champlon 2023-07-29 06:29:19 +02:00 committed by GitHub
parent 900b687f40
commit f3023ae88e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,8 +150,6 @@ func (g *Game) drawLine(screen *ebiten.Image, region image.Rectangle, cap vector
op.Width = 1
vs, is := path.AppendVerticesAndIndicesForStroke(g.vertices[:0], g.indices[:0], op)
for i := range vs {
vs[i].SrcX = 1
vs[i].SrcY = 1
vs[i].SrcX = 1
vs[i].SrcY = 1
vs[i].ColorR = 1