summaryrefslogtreecommitdiff
path: root/sysutils/onefetch/files/patch-src_ui_image__backends_iterm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/onefetch/files/patch-src_ui_image__backends_iterm.rs')
-rw-r--r--sysutils/onefetch/files/patch-src_ui_image__backends_iterm.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/onefetch/files/patch-src_ui_image__backends_iterm.rs b/sysutils/onefetch/files/patch-src_ui_image__backends_iterm.rs
new file mode 100644
index 000000000000..c8ce5936d1e3
--- /dev/null
+++ b/sysutils/onefetch/files/patch-src_ui_image__backends_iterm.rs
@@ -0,0 +1,11 @@
+--- src/ui/image_backends/iterm.rs.orig 2021-07-13 09:56:48 UTC
++++ src/ui/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);