ports/sysutils/onefetch/files/patch-src_onefetch_image__backends_iterm.rs
Fernando Apesteguía 12bf0a9663 sysutils/onefetch: Update to 2.7.3
ChangeLog: https://github.com/o2sh/onefetch/releases/v2.7.3

PR:	251707
Submitted by:	vulcan@wired.sh (maintainer)
2020-12-10 14:19:54 +00:00

11 lines
534 B
Rust

--- src/onefetch/image_backends/iterm.rs.orig 2020-12-09 14:30:25 UTC
+++ src/onefetch/image_backends/iterm.rs
@@ -27,7 +27,7 @@ impl super::ImageBackend for ITermBackend {
) -> Result<String> {
let tty_size = unsafe {
let tty_size: winsize = std::mem::zeroed();
- ioctl(STDOUT_FILENO, TIOCGWINSZ, &tty_size);
+ ioctl(STDOUT_FILENO, TIOCGWINSZ.into(), &tty_size);
tty_size
};
let width_ratio = f64::from(tty_size.ws_col) / f64::from(tty_size.ws_xpixel);