mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-10-08 20:26:42 +02:00
resize both buffers
This commit is contained in:
parent
1e8b18134d
commit
50c0ed1c66
1 changed files with 1 additions and 0 deletions
|
|
@ -291,6 +291,7 @@ impl Tui {
|
|||
let Size { width, height } = backend.size().expect("get size failed");
|
||||
if let Some(state) = state.try_read() {
|
||||
prev.resize(&mut backend, width, height);
|
||||
next.resize(&mut backend, width, height);
|
||||
state.draw(&mut next).expect("draw failed"); // TODO draw error
|
||||
prev.redraw(&mut backend, &mut next);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue