From e9ffe13739d61a553f17751d180386a299f0c28e Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 8 Apr 2016 04:20:45 +0900 Subject: [PATCH] graphics: Avoid copying receivers for JS --- imageparts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imageparts.go b/imageparts.go index 9ff384c00..fe5e5c943 100644 --- a/imageparts.go +++ b/imageparts.go @@ -74,11 +74,11 @@ type uv struct { height2p int } -func (c uv) u(x int) int16 { +func (c *uv) u(x int) int16 { return int16(math.MaxInt16 * x / c.width2p) } -func (c uv) v(y int) int16 { +func (c *uv) v(y int) int16 { return int16(math.MaxInt16 * y / c.height2p) }