From 59fa689f2217e822d86d52bd69b0da5cd1e11cec Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 5 Jul 2021 23:32:19 +0900 Subject: [PATCH] internal/graphicscommand: Misspelling --- internal/graphicscommand/command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/graphicscommand/command.go b/internal/graphicscommand/command.go index 1bf7f5bd9..3dc137ef5 100644 --- a/internal/graphicscommand/command.go +++ b/internal/graphicscommand/command.go @@ -489,7 +489,7 @@ func (c *drawTrianglesCommand) CanMergeWithDrawTrianglesCommand(dst *Image, srcs } if c.evenOdd || evenOdd { if c.evenOdd && evenOdd { - return !mightOverlapsDstRegions(c.vertices, vertices) + return !mightOverlapDstRegions(c.vertices, vertices) } return false } @@ -526,7 +526,7 @@ func dstRegionFromVertices(vertices []float32) (minX, minY, maxX, maxY float32) return } -func mightOverlapsDstRegions(vertices1, vertices2 []float32) bool { +func mightOverlapDstRegions(vertices1, vertices2 []float32) bool { minX1, minY1, maxX1, maxY1 := dstRegionFromVertices(vertices1) minX2, minY2, maxX2, maxY2 := dstRegionFromVertices(vertices2) const mergin = 1