From 18d77d3f6e78afaaae4ffac0113215edfc977c4a Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 3 Aug 2018 02:50:11 +0900 Subject: [PATCH] shareable: Rename variables --- internal/shareable/shareable.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/shareable/shareable.go b/internal/shareable/shareable.go index 21788106a..cebb8c07a 100644 --- a/internal/shareable/shareable.go +++ b/internal/shareable/shareable.go @@ -188,9 +188,9 @@ func (i *Image) QuadVertices(sx0, sy0, sx1, sy1 int, a, b, c, d, tx, ty float32, if i.backend == nil { i.allocate(true) } - dx, dy, _, _ := i.region() + ox, oy, _, _ := i.region() w, h := i.backend.restorable.SizePowerOf2() - return graphicsutil.QuadVertices(w, h, sx0+dx, sy0+dy, sx1+dx, sy1+dy, a, b, c, d, tx, ty, colorm) + return graphicsutil.QuadVertices(w, h, sx0+ox, sy0+oy, sx1+ox, sy1+oy, a, b, c, d, tx, ty, colorm) } const MaxCountForShare = 10