From c4b8378b71212bee7285a4bb6c54598a40597147 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 27 Aug 2023 21:21:14 +0900 Subject: [PATCH] ebiten: fix typo --- image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.go b/image.go index f795b1323..90cb26f37 100644 --- a/image.go +++ b/image.go @@ -789,7 +789,7 @@ func (i *Image) DrawRectShader(width, height int, shader *Shader, options *DrawR cr, cg, cb, ca := options.ColorScale.elements() vs := i.ensureTmpVertices(4 * graphics.VertexFloatCount) - // Do not use srcRegions[0].Width and srcRegions[-].Height as these might be empty. + // Do not use srcRegions[0].Width and srcRegions[0].Height as these might be empty. graphics.QuadVertices(vs, srcRegions[0].X, srcRegions[0].Y, srcRegions[0].X+float32(width), srcRegions[0].Y+float32(height), a, b, c, d, tx, ty, cr, cg, cb, ca) is := graphics.QuadIndices()