From 22fab6f38bb5ec6f88ff60cd7b0ab193491ba687 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sat, 20 Jul 2024 14:02:31 -0500 Subject: [PATCH] image: fix image scaling s/win.height/win.width --- src/Image.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Image.zig b/src/Image.zig index 93ab63b..750f1f5 100644 --- a/src/Image.zig +++ b/src/Image.zig @@ -118,7 +118,7 @@ pub fn draw(self: Image, win: Window, opts: DrawOptions) !void { // Does the image require horizontal scaling? else if (!fit_x and fit_y) p_opts.size = .{ - .cols = win.height, + .cols = win.width, } else if (!fit_x and !fit_y) { const diff_x = self.width - win_width_pix;