diff --git a/src/app/cpu_graph.rs b/src/app/cpu_graph.rs index 38c76ba..6b901ca 100644 --- a/src/app/cpu_graph.rs +++ b/src/app/cpu_graph.rs @@ -31,7 +31,7 @@ impl canvas::Program for CpuGraph { bounds: iced::Rectangle, _cursor: mouse::Cursor, ) -> Vec> { - let geometry = self.cache.draw_with_bounds(renderer, bounds, |frame| { + let geometry = self.cache.draw(renderer, bounds.size(), |frame| { frame.stroke( &canvas::Path::new(|builder| { for (index, value) in self.timeline.iter().enumerate() {