mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
piecing back together the groovebox
This commit is contained in:
parent
77091671a3
commit
50bb8cab07
3 changed files with 8 additions and 14 deletions
|
|
@ -112,12 +112,11 @@ impl<E, T, I, J, R, F> Content<E> for Map<E, T, I, J, R, F> where
|
|||
}
|
||||
fn render (&self, to: &mut E::Output) {
|
||||
let mut index = 0;
|
||||
let area = self.layout(to.area());
|
||||
//panic!("{area:?}");
|
||||
//to.blit(&format!("{area:?}"), 0, 0, None);
|
||||
//let area = self.layout(to.area());
|
||||
for item in (self.1)() {
|
||||
let item = (self.2)(item, index);
|
||||
to.place(area.into(), &item);
|
||||
//to.place(area.into(), &item);
|
||||
to.place(to.area().into(), &item);
|
||||
index += 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue