mirror of
https://git.freebsd.org/ports.git
synced 2025-06-09 23:00:30 -04:00
11 lines
522 B
Rust
11 lines
522 B
Rust
--- src/ui/image_backends/kitty.rs.orig 2021-07-13 09:57:06 UTC
|
|
+++ src/ui/image_backends/kitty.rs
|
|
@@ -77,7 +77,7 @@ impl super::ImageBackend for KittyBackend {
|
|
) -> 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);
|