diff --git a/frontend/src/app/render_wasm.cljs b/frontend/src/app/render_wasm.cljs index 3482e3f42..7b69c9d40 100644 --- a/frontend/src/app/render_wasm.cljs +++ b/frontend/src/app/render_wasm.cljs @@ -102,8 +102,9 @@ :saturation 26 :color 27 :luminosity 28 - 3)] - (._set_shape_blend_mode ^js internal-module encoded-blend))) + 3) + set-shape-blend-mode (unchecked-get internal-module "_set_shape_blend_mode")] + (^function set-shape-blend-mode encoded-blend))) (defn set-objects [objects] diff --git a/render-wasm/src/render.rs b/render-wasm/src/render.rs index 80469da32..531cbfad8 100644 --- a/render-wasm/src/render.rs +++ b/render-wasm/src/render.rs @@ -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(); } }