From f931d555446a5c82fb344d17d58db7d2b8ded39e Mon Sep 17 00:00:00 2001 From: Thomas Gatzweiler Date: Tue, 1 Apr 2025 13:29:54 +0200 Subject: [PATCH] fix(tiny-skia): correct clip bounds transformation --- tiny_skia/src/layer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tiny_skia/src/layer.rs b/tiny_skia/src/layer.rs index 5f3979bf..d39278b2 100644 --- a/tiny_skia/src/layer.rs +++ b/tiny_skia/src/layer.rs @@ -191,7 +191,7 @@ impl Layer { ) { self.primitives.push(Item::Group( primitives, - clip_bounds, + clip_bounds * transformation, transformation, )); } @@ -204,7 +204,7 @@ impl Layer { ) { self.primitives.push(Item::Cached( primitives, - clip_bounds, + clip_bounds * transformation, transformation, )); }