mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-12 01:51:34 +11:00
Make init
take an impl Fn
rather than a Box<dyn Fn()>
This commit is contained in:
parent
3a913f142a
commit
de594ad362
|
@ -482,12 +482,7 @@ impl<'a> InfiniteScrolledMap<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn init(
|
pub fn init(&mut self, vram: &mut VRamManager, pos: Vector2D<i32>, between_updates: impl Fn()) {
|
||||||
&mut self,
|
|
||||||
vram: &mut VRamManager,
|
|
||||||
pos: Vector2D<i32>,
|
|
||||||
between_updates: Box<dyn Fn()>,
|
|
||||||
) {
|
|
||||||
while self.init_partial(vram, pos) != PartialUpdateStatus::Done {
|
while self.init_partial(vram, pos) != PartialUpdateStatus::Done {
|
||||||
between_updates();
|
between_updates();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue