Skip to content

Commit

Permalink
unneccessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
ahirner committed Oct 15, 2023
1 parent e136417 commit 1fbe2ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infur/src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ impl eframe::App for InFur {
// occupy max width with constant aspect ratio
let max_width = ui.available_width();
let [w, h] = tex_frame.handle.size();
let w_scale = max_width as f32 / w as f32;
let w_scale = max_width / w as f32;
let (w, h) = (w as f32 * w_scale, h as f32 * w_scale);
ui.image(&tex_frame.handle, [w, h]);
// prop decoded image underneath
Expand Down

0 comments on commit 1fbe2ae

Please sign in to comment.