From 2a680eeb32b781a351108380ddcb782a240c3fad Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Fri, 27 Feb 2026 17:22:13 -0500 Subject: [PATCH] fix: do not scale position of rotated svg --- tiny_skia/src/vector.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tiny_skia/src/vector.rs b/tiny_skia/src/vector.rs index 6eb74d7b..889a3c0d 100644 --- a/tiny_skia/src/vector.rs +++ b/tiny_skia/src/vector.rs @@ -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,