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
|
|
@ -681,11 +681,7 @@ where
|
|||
.as_logical()
|
||||
.to_physical_precise_round(scale);
|
||||
let crop_to_output = |element: WorkspaceRenderElement<R>| {
|
||||
CropRenderElement::from_element(
|
||||
element.into(),
|
||||
scale,
|
||||
Rectangle::from_loc_and_size((0, 0), output_size),
|
||||
)
|
||||
CropRenderElement::from_element(element.into(), scale, Rectangle::from_size(output_size))
|
||||
};
|
||||
|
||||
render_input_order(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue