Fix Clip primitive translation in iced_tiny_skia

This commit is contained in:
Héctor Ramón Jiménez 2023-03-01 21:41:32 +01:00
parent 5fd5d1cdf8
commit 5c0427edbb
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 2 additions and 2 deletions

View file

@ -145,7 +145,7 @@ impl Application for GameOfLife {
self.grid self.grid
.view() .view()
.map(move |message| Message::Grid(message, version)), .map(move |message| Message::Grid(message, version)),
controls controls,
]; ];
container(content) container(content)

View file

@ -221,7 +221,7 @@ impl Backend {
pixels, pixels,
Some(&rectangular_clip_mask( Some(&rectangular_clip_mask(
pixels, pixels,
*bounds * scale_factor, (*bounds + translation) * scale_factor,
)), )),
scale_factor, scale_factor,
translation, translation,