Use frame stack instead of explicit pos and size parameters

This commit is contained in:
Joscha 2022-07-13 11:34:31 +02:00
parent 44470b973d
commit 9aed0a3cee
9 changed files with 22 additions and 15 deletions

View file

@ -262,7 +262,9 @@ impl EuphRoom {
let mut list = self.nick_list.list();
Self::render_rows(&mut list, joined);
Box::new(list).render(frame, pos, size).await;
frame.push(pos, size);
Box::new(list).render(frame).await;
frame.pop();
}
fn render_hsplit(frame: &mut Frame, hsplit: i32) {