fix: transform of tiny-skia rotation
reverts changes from upstream that have broken svg rotation
This commit is contained in:
parent
842e3e432c
commit
d79181f443
1 changed files with 3 additions and 5 deletions
|
|
@ -43,10 +43,8 @@ impl Pipeline {
|
||||||
if let Some(image) = self.cache.borrow_mut().draw(
|
if let Some(image) = self.cache.borrow_mut().draw(
|
||||||
handle,
|
handle,
|
||||||
color,
|
color,
|
||||||
Size::new(
|
// XX Do not apply transform scaling for rotation to the size
|
||||||
(bounds.width * transform.sx) as u32,
|
Size::new((bounds.width) as u32, (bounds.height) as u32),
|
||||||
(bounds.height * transform.sy) as u32,
|
|
||||||
),
|
|
||||||
) {
|
) {
|
||||||
// XX Do not apply transform scaling for rotation to the position
|
// XX Do not apply transform scaling for rotation to the position
|
||||||
pixels.draw_pixmap(
|
pixels.draw_pixmap(
|
||||||
|
|
@ -58,7 +56,7 @@ impl Pipeline {
|
||||||
quality: tiny_skia::FilterQuality::Bicubic,
|
quality: tiny_skia::FilterQuality::Bicubic,
|
||||||
..tiny_skia::PixmapPaint::default()
|
..tiny_skia::PixmapPaint::default()
|
||||||
},
|
},
|
||||||
Transform::default(),
|
transform,
|
||||||
clip_mask,
|
clip_mask,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue