Skip to content

Commit

Permalink
correct lint
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed May 23, 2024
1 parent 70004d3 commit 64255e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontends/cross-winit/src/screen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl Screen {
sugarloaf.set_background_color(state.dynamic_background);

if let Some(image) = &config.window.background_image {
sugarloaf.set_background_image(&image);
sugarloaf.set_background_image(image);
}

let ime = Ime::new();
Expand Down
5 changes: 4 additions & 1 deletion sugarloaf/src/sugarloaf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,10 @@ impl Sugarloaf {
self.rects.push(Rect {
position: [scaled_rect_pos_x, scaled_rect_pos_y],
color: stack[i].background_color,
size: [width_bound * quantity as f32, (self.layout.sugarheight - 0.5)],
size: [
width_bound * quantity as f32,
(self.layout.sugarheight - 0.5),
],
});

let dec_pos_y = (scaled_rect_pos_y)
Expand Down

0 comments on commit 64255e7

Please sign in to comment.