Migrate away from Rectangle::from_loc_and_size
Deprecated in `smithay` by https://github.com/Smithay/smithay/pull/1621.
This commit is contained in:
parent
9074447c4f
commit
b685512127
26 changed files with 184 additions and 201 deletions
|
|
@ -23,7 +23,7 @@ impl<N: Coordinate, Kind> CanTween for EaseSize<N, Kind> {
|
|||
|
||||
impl<N: Coordinate, Kind> CanTween for EaseRectangle<N, Kind> {
|
||||
fn ease(from: Self, to: Self, time: impl Float) -> Self {
|
||||
EaseRectangle(Rectangle::from_loc_and_size(
|
||||
EaseRectangle(Rectangle::new(
|
||||
CanTween::ease(EasePoint(from.0.loc), EasePoint(to.0.loc), time).unwrap(),
|
||||
CanTween::ease(EaseSize(from.0.size), EaseSize(to.0.size), time).unwrap(),
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue