Fix Clip primitive translation in iced_tiny_skia
This commit is contained in:
parent
5fd5d1cdf8
commit
5c0427edbb
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue