From 1260d779994b9cd5587701e91c0510578c5057c6 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 22 Sep 2024 13:27:25 +0900 Subject: [PATCH] ebiten: refactoring --- image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.go b/image.go index a1bf29a94..d0ff727b1 100644 --- a/image.go +++ b/image.go @@ -919,7 +919,7 @@ func (i *Image) DrawRectShader(width, height int, shader *Shader, options *DrawR hint = restorable.HintOverwriteDstRegion } - i.image.DrawTriangles(imgs, vs, is, blend, i.adjustedBounds(), srcRegions, shader.shader, i.tmpUniforms, graphicsdriver.FillRuleFillAll, true, false, hint) + i.image.DrawTriangles(imgs, vs, is, blend, dr, srcRegions, shader.shader, i.tmpUniforms, graphicsdriver.FillRuleFillAll, true, false, hint) } // SubImage returns an image representing the portion of the image p visible through r.