fix: do not scale position of rotated svg

This commit is contained in:
Ashley Wulber 2026-02-27 17:22:13 -05:00
parent 4f80a7ad9e
commit 2a680eeb32
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -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,