all: address clippy issues
This commit is contained in:
parent
9c7299234a
commit
036af4abaa
10 changed files with 23 additions and 13 deletions
|
|
@ -210,8 +210,7 @@ impl GuiElement for Button {
|
|||
r.fill_boxes_f(&rects, &color);
|
||||
}
|
||||
if let Some(tex) = self.tex.get() {
|
||||
let (tx, ty) =
|
||||
r.scale_point_f(x1 + self.tex_off_x.get(), y1 as f32 + self.tex_off_y.get());
|
||||
let (tx, ty) = r.scale_point_f(x1 + self.tex_off_x.get(), y1 + self.tex_off_y.get());
|
||||
r.render_texture(
|
||||
&tex,
|
||||
tx.round() as _,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue