Skip to content

Commit 7f69244

Browse files
ids1024Drakulix
authored andcommitted
Use Mul impl of Size
1 parent b685512 commit 7f69244

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/shell/layout/tiling/mod.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5075,11 +5075,7 @@ fn render_old_tree(
50755075
.map(|adapted_geo| {
50765076
Rectangle::new(
50775077
adapted_geo.loc + offset,
5078-
(
5079-
(original_geo.size.w as f64 * scale).round() as i32,
5080-
(original_geo.size.h as f64 * scale).round() as i32,
5081-
)
5082-
.into(),
5078+
(original_geo.size.to_f64() * scale).to_i32_round(),
50835079
)
50845080
})
50855081
.unwrap_or(*original_geo);
@@ -5643,11 +5639,7 @@ fn render_new_tree(
56435639
.map(|adapted_geo| {
56445640
Rectangle::new(
56455641
adapted_geo.loc + offset,
5646-
(
5647-
(original_geo.size.w as f64 * scale).round() as i32,
5648-
(original_geo.size.h as f64 * scale).round() as i32,
5649-
)
5650-
.into(),
5642+
(original_geo.size.to_f64() * scale).to_i32_round(),
56515643
)
56525644
})
56535645
.unwrap_or(*original_geo),

0 commit comments

Comments
 (0)