Skip to content

Commit 764bd53

Browse files
committed
Apply transformation to clip bounds
1 parent 9620d09 commit 764bd53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tiny_skia/src/engine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ impl Engine {
343343
transformation: local_transformation,
344344
} => {
345345
let transformation = transformation * *local_transformation;
346-
let Some(clip_bounds) =
347-
local_clip_bounds.intersection(&clip_bounds)
346+
let Some(clip_bounds) = clip_bounds
347+
.intersection(&(*local_clip_bounds * transformation))
348348
else {
349349
return;
350350
};

0 commit comments

Comments
 (0)