mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix not clearing drawing surface before drawing shapes
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user