Skip to content

Commit

Permalink
fix: Contain now preserves aspect ratio of tall images (height > wi…
Browse files Browse the repository at this point in the history
…dth)
  • Loading branch information
saltkid committed Jan 1, 2025
1 parent 6f375e2 commit 3c760e0
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 @@ -471,7 +471,7 @@ impl crate::TermWindow {
}
} else {
// Height is the longest side
let target_width = pixel_height / aspect;
let target_width = pixel_height * aspect;
if target_width > pixel_width {
(
pixel_width,
Expand Down

0 comments on commit 3c760e0

Please sign in to comment.