mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 20:21:37 +02:00
💄 Change naming and args order of write-gradient-fill!
This commit is contained in:
parent
4bf9e24d43
commit
1da623e63f
2 changed files with 6 additions and 5 deletions
|
@ -227,7 +227,7 @@
|
|||
(let [size (sr-fills/gradient-byte-size gradient)
|
||||
offset (mem/alloc-bytes size)
|
||||
heap (mem/get-heap-u32)]
|
||||
(sr-fills/serialize-gradient-fill gradient opacity heap offset)
|
||||
(sr-fills/write-gradient-fill! offset heap gradient opacity)
|
||||
(case (:type gradient)
|
||||
:linear
|
||||
(h/call wasm/internal-module "_add_shape_linear_fill")
|
||||
|
@ -273,7 +273,7 @@
|
|||
(let [size (sr-fills/gradient-byte-size gradient)
|
||||
offset (mem/alloc-bytes size)
|
||||
heap (mem/get-heap-u32)]
|
||||
(sr-fills/serialize-gradient-fill gradient opacity heap offset)
|
||||
(sr-fills/write-gradient-fill! offset heap gradient opacity)
|
||||
(case (:type gradient)
|
||||
:linear
|
||||
(h/call wasm/internal-module "_add_shape_stroke_linear_fill")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue