image: fix image scaling s/win.height/win.width
This commit is contained in:
parent
53374f4f09
commit
22fab6f38b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue