Skip to content

Commit

Permalink
fix(render): do not panic when render area is bigger than buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Mar 19, 2024
1 parent 726cb6b commit 05fe02c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/splash_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ impl Widget for &mut SplashScreen {
where
Self: Sized,
{
let area = area.intersection(buf.area);
let data = self.get_color_data();
Canvas::default()
.x_bounds([0.0, (self.image.to_rgb8().width() - 1) as f64])
Expand Down

0 comments on commit 05fe02c

Please sign in to comment.