fix: do not scale position of rotated svg
This commit is contained in:
parent
4f80a7ad9e
commit
2a680eeb32
1 changed files with 3 additions and 2 deletions
|
|
@ -48,9 +48,10 @@ impl Pipeline {
|
|||
(bounds.height * transform.sy) as u32,
|
||||
),
|
||||
) {
|
||||
// XX Do not apply transform scaling for rotation to the position
|
||||
pixels.draw_pixmap(
|
||||
(bounds.x * transform.sx) as i32,
|
||||
(bounds.y * transform.sy) as i32,
|
||||
(bounds.x) as i32,
|
||||
(bounds.y) as i32,
|
||||
image,
|
||||
&tiny_skia::PixmapPaint {
|
||||
opacity,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue