Ask for a Size in Frame::new

This commit is contained in:
Héctor Ramón Jiménez 2020-04-28 03:16:18 +02:00
parent b0825ce38b
commit 2381a9310c
2 changed files with 8 additions and 10 deletions

View file

@ -61,7 +61,7 @@ impl Cache {
}
}
let mut frame = Frame::new(new_bounds.width, new_bounds.height);
let mut frame = Frame::new(new_bounds);
input.draw(&mut frame);
let primitive = Arc::new(frame.into_primitive());