Skip to content

Commit

Permalink
fix fallback scaling for background images
Browse files Browse the repository at this point in the history
We weren't redrawing the background image with the scale factor
that we'd computed when noticing that we had run out of texture space.

refs: wez#3773
  • Loading branch information
wez committed May 27, 2023
1 parent 13c0ba3 commit 9b31092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wezterm-gui/src/termwindow/render/paint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl crate::TermWindow {

// Render the full window background
match (self.window_background.is_empty(), self.allow_images) {
(false, AllowImage::Yes) => {
(false, AllowImage::Yes | AllowImage::Scale(_)) => {
let bg_color = self.palette().background.to_linear();

let top = panes
Expand Down

0 comments on commit 9b31092

Please sign in to comment.