mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
graphics: Avoid copying receivers for JS
This commit is contained in:
parent
9e58128ea8
commit
e9ffe13739
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user