Skip to content

Commit 22fab6f

Browse files
committed
image: fix image scaling s/win.height/win.width
1 parent 53374f4 commit 22fab6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Image.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub fn draw(self: Image, win: Window, opts: DrawOptions) !void {
118118
// Does the image require horizontal scaling?
119119
else if (!fit_x and fit_y)
120120
p_opts.size = .{
121-
.cols = win.height,
121+
.cols = win.width,
122122
}
123123
else if (!fit_x and !fit_y) {
124124
const diff_x = self.width - win_width_pix;

0 commit comments

Comments
 (0)