Skip to content

Commit c0d7de1

Browse files
committed
Apply transform to text editor clip bounds too
1 parent 764bd53 commit c0d7de1

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
@@ -382,8 +382,8 @@ impl Engine {
382382
transformation: local_transformation,
383383
} => {
384384
let transformation = transformation * *local_transformation;
385-
let Some(clip_bounds) =
386-
local_clip_bounds.intersection(&clip_bounds)
385+
let Some(clip_bounds) = clip_bounds
386+
.intersection(&(*local_clip_bounds * transformation))
387387
else {
388388
return;
389389
};

0 commit comments

Comments
 (0)