mirror of
https://github.com/penpot/penpot.git
synced 2025-07-19 05:57:11 +02:00
♻️ Adapt linear gradient type so it can be used for radial too (wasm)
This commit is contained in:
parent
f40ef26c69
commit
abcd050c69
6 changed files with 32 additions and 28 deletions
|
@ -20,7 +20,7 @@ pub extern "C" fn alloc_bytes(len: usize) -> *mut u8 {
|
|||
if ptr.is_null() {
|
||||
panic!("Allocation failed");
|
||||
}
|
||||
// TODO: Esto quizá se podría eliminar.
|
||||
// TODO: Maybe this could be removed.
|
||||
ptr::write_bytes(ptr, 0, len);
|
||||
*guard = Some(Box::new(Vec::from_raw_parts(ptr, len, len)));
|
||||
ptr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue