mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
internal/packing: rename a function
This commit is contained in:
parent
3651d73e0b
commit
d906dc3a21
@ -172,7 +172,7 @@ func (p *Page) Alloc(width, height int) *Node {
|
|||||||
region: image.Rect(0, 0, p.width, p.height),
|
region: image.Rect(0, 0, p.width, p.height),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return p.extendForAndAlloc(width, height)
|
return p.extendAndAlloc(width, height)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Page) Free(node *Node) {
|
func (p *Page) Free(node *Node) {
|
||||||
@ -210,7 +210,7 @@ func walk(n *Node, f func(n *Node) error) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Page) extendForAndAlloc(width, height int) *Node {
|
func (p *Page) extendAndAlloc(width, height int) *Node {
|
||||||
if n := alloc(p.root, width, height); n != nil {
|
if n := alloc(p.root, width, height); n != nil {
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user