Use Mul impl of Size
This commit is contained in:
parent
b685512127
commit
7f69244e07
1 changed files with 2 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue