remove redundant clones, use mul_add on f32s
This commit is contained in:
parent
bd438a8581
commit
1d6a43486e
12 changed files with 69 additions and 69 deletions
|
|
@ -1419,8 +1419,8 @@ where
|
|||
renderer.fill_quad(
|
||||
renderer::Quad {
|
||||
bounds: Rectangle {
|
||||
x: bounds.x
|
||||
- (level as f32 * self.indent_spacing as f32)
|
||||
x: (level as f32)
|
||||
.mul_add(-(self.indent_spacing as f32), bounds.x)
|
||||
+ indent_padding,
|
||||
width: 1.0,
|
||||
..bounds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue