Resize base layer in Stack before drawing

This commit is contained in:
Héctor Ramón Jiménez 2025-08-17 00:58:37 +02:00
parent 46167c78c7
commit d2f36a0a58
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 14 additions and 13 deletions

View file

@ -225,8 +225,8 @@ impl core::Renderer for Renderer {
layer.draw_quad(quad, background.into(), transformation);
}
fn clear(&mut self) {
self.layers.clear();
fn reset(&mut self, new_bounds: Rectangle) {
self.layers.reset(new_bounds);
}
}