Skip to content

Commit

Permalink
Use Mul impl of Size
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 authored and Drakulix committed Jan 7, 2025
1 parent b685512 commit 7f69244
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/shell/layout/tiling/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5075,11 +5075,7 @@ fn render_old_tree(
.map(|adapted_geo| {
Rectangle::new(
adapted_geo.loc + offset,
(
(original_geo.size.w as f64 * scale).round() as i32,
(original_geo.size.h as f64 * scale).round() as i32,
)
.into(),
(original_geo.size.to_f64() * scale).to_i32_round(),
)
})
.unwrap_or(*original_geo);
Expand Down Expand Up @@ -5643,11 +5639,7 @@ fn render_new_tree(
.map(|adapted_geo| {
Rectangle::new(
adapted_geo.loc + offset,
(
(original_geo.size.w as f64 * scale).round() as i32,
(original_geo.size.h as f64 * scale).round() as i32,
)
.into(),
(original_geo.size.to_f64() * scale).to_i32_round(),
)
})
.unwrap_or(*original_geo),
Expand Down

0 comments on commit 7f69244

Please sign in to comment.