graphics: Avoid copying receivers for JS

This commit is contained in:
Hajime Hoshi 2016-04-08 04:20:45 +09:00
parent 9e58128ea8
commit e9ffe13739

View File

@ -74,11 +74,11 @@ type uv struct {
height2p int height2p int
} }
func (c uv) u(x int) int16 { func (c *uv) u(x int) int16 {
return int16(math.MaxInt16 * x / c.width2p) 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) return int16(math.MaxInt16 * y / c.height2p)
} }