Skip to content

Commit

Permalink
.floor().
Browse files Browse the repository at this point in the history
  • Loading branch information
jaanauati committed Dec 24, 2024
1 parent c925a53 commit f19d2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wezterm-gui/src/termwindow/background.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ impl crate::TermWindow {

let computed_background_height = match layer.def.height {
BackgroundSize::Cover => match layer.def.width {
BackgroundSize::Dimension(n) => (n.evaluate_as_pixels(h_context) / aspect) as f32,
BackgroundSize::Dimension(n) => (n.evaluate_as_pixels(h_context) / aspect).floor(),
_ => min_aspect_height,
}
_ => min_aspect_height,
Expand Down

0 comments on commit f19d2aa

Please sign in to comment.