mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 16:00:19 -05: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
|
@ -102,8 +102,9 @@
|
||||||
:saturation 26
|
:saturation 26
|
||||||
:color 27
|
:color 27
|
||||||
:luminosity 28
|
:luminosity 28
|
||||||
3)]
|
3)
|
||||||
(._set_shape_blend_mode ^js internal-module encoded-blend)))
|
set-shape-blend-mode (unchecked-get internal-module "_set_shape_blend_mode")]
|
||||||
|
(^function set-shape-blend-mode encoded-blend)))
|
||||||
|
|
||||||
(defn set-objects
|
(defn set-objects
|
||||||
[objects]
|
[objects]
|
||||||
|
|
|
@ -92,7 +92,11 @@ impl RenderState {
|
||||||
pub fn reset_canvas(&mut self) {
|
pub fn reset_canvas(&mut self) {
|
||||||
self.drawing_surface
|
self.drawing_surface
|
||||||
.canvas()
|
.canvas()
|
||||||
.clear(skia_safe::Color::TRANSPARENT);
|
.clear(skia_safe::Color::TRANSPARENT)
|
||||||
self.drawing_surface.canvas().reset_matrix();
|
.reset_matrix();
|
||||||
|
self.final_surface
|
||||||
|
.canvas()
|
||||||
|
.clear(skia_safe::Color::TRANSPARENT)
|
||||||
|
.reset_matrix();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue