mirror of
https://github.com/penpot/penpot.git
synced 2025-05-22 14:16:11 +02:00
🐛 Fix not clearing drawing surface before drawing shapes
This commit is contained in:
parent
d1d34a3aa7
commit
58d3a2984f
2 changed files with 9 additions and 4 deletions
|
@ -92,7 +92,11 @@ impl RenderState {
|
|||
pub fn reset_canvas(&mut self) {
|
||||
self.drawing_surface
|
||||
.canvas()
|
||||
.clear(skia_safe::Color::TRANSPARENT);
|
||||
self.drawing_surface.canvas().reset_matrix();
|
||||
.clear(skia_safe::Color::TRANSPARENT)
|
||||
.reset_matrix();
|
||||
self.final_surface
|
||||
.canvas()
|
||||
.clear(skia_safe::Color::TRANSPARENT)
|
||||
.reset_matrix();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue