♻️ Move rendering a single shape to the shape itself

This commit is contained in:
Belén Albeza 2024-12-10 15:29:49 +01:00
parent 001aa3f319
commit 967bc75a1c
5 changed files with 121 additions and 72 deletions

View file

@ -307,7 +307,7 @@ pub extern "C" fn clear_shape_fills() {
pub extern "C" fn set_shape_blend_mode(mode: i32) {
let state = unsafe { STATE.as_mut() }.expect("got an invalid state pointer");
if let Some(shape) = state.current_shape() {
shape.set_blend_mode(shapes::BlendMode::from(mode));
shape.set_blend_mode(render::BlendMode::from(mode));
}
}